1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Add rest dependency; fix SQLite function def

This commit is contained in:
J. King 2017-03-13 23:22:20 -04:00
parent 6413d3a489
commit b821d728e4
4 changed files with 62 additions and 9 deletions

View file

@ -18,14 +18,15 @@
], ],
"require": { "require": {
"php": "^7.0.0", "php": "^7.0",
"ext-intl": "*", "ext-intl": "*",
"ext-iconv": "*", "ext-iconv": "*",
"jkingweb/druuid": "^3.0.0", "fguillot/picofeed": ">=0.1.31",
"phpseclib/phpseclib": "^2.0.4", "respect/rest": "^0.6",
"webmozart/glob": "^4.1.0", "jkingweb/druuid": "^3.0",
"fguillot/picoFeed": ">=0.1.31", "phpseclib/phpseclib": "^2.0",
"hosteurope/password-generator": "^1.0" "hosteurope/password-generator": "^1.0",
"webmozart/glob": "^4.1"
}, },
"require-dev": { "require-dev": {
"mikey179/vfsStream": "^1.6.4" "mikey179/vfsStream": "^1.6.4"

48
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "8260cf555776b4ffaef7fca3ca891311", "content-hash": "31bedf1105f6249d6e9d990abd2125de",
"packages": [ "packages": [
{ {
"name": "fguillot/picofeed", "name": "fguillot/picofeed",
@ -236,6 +236,50 @@
], ],
"time": "2016-10-04T00:57:04+00:00" "time": "2016-10-04T00:57:04+00:00"
}, },
{
"name": "respect/rest",
"version": "0.6.0",
"source": {
"type": "git",
"url": "https://github.com/Respect/Rest.git",
"reference": "4f60aa199623d738a3391ca1e80bafb754bc9308"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Respect/Rest/zipball/4f60aa199623d738a3391ca1e80bafb754bc9308",
"reference": "4f60aa199623d738a3391ca1e80bafb754bc9308",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.4.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Respect\\": "library/Respect"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD Style"
],
"authors": [
{
"name": "Alexandre Gaigalas",
"email": "alexandre@gaigalas.net"
},
{
"name": "Respect/Data Contributors",
"homepage": "https://github.com/Respect/Data/graphs/contributors"
}
],
"description": "Thin controller for RESTful applications",
"homepage": "http://respect.li/",
"time": "2015-01-12T09:55:16+00:00"
},
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
"version": "1.2.0", "version": "1.2.0",
@ -479,7 +523,7 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": "^7.0.0", "php": "^7.0",
"ext-intl": "*", "ext-intl": "*",
"ext-iconv": "*" "ext-iconv": "*"
}, },

View file

@ -43,7 +43,7 @@ class Driver extends \JKingWeb\NewsSync\Db\AbstractDriver {
$this->exec("PRAGMA journal_mode = wal"); $this->exec("PRAGMA journal_mode = wal");
$this->exec("PRAGMA foreign_keys = yes"); $this->exec("PRAGMA foreign_keys = yes");
// Create custom functions // Create custom functions
$this->db->createFunction('DATEFORMAT', CustomFunctions::dateFormat, 2); $this->db->createFunction('DATEFORMAT', [CustomFunctions::class, 'dateFormat'], 2);
} catch(\Exception $e) { } catch(\Exception $e) {
list($excClass, $excMsg, $excData) = $this->exceptionBuild(); list($excClass, $excMsg, $excData) = $this->exceptionBuild();
throw new $excClass($excMsg, $excData); throw new $excClass($excMsg, $excData);

8
lib/REST.php Normal file
View file

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace JKingWeb\NewsSync;
use Respect\Rest\Router;
class REST {
}