aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-05-24 13:04:03 +0200
committerCamil Staps2015-05-24 13:04:03 +0200
commit718d06765565ec1d45ec0bb63f0c8030b46c8d55 (patch)
tree5e4bb277dd24c10af1eed3693b99823994108059
parentDisable laravel session cookie (diff)
PHP 5.5 requirement for empty(<some-function>); cleanup
-rw-r--r--composer.json2
-rw-r--r--src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php4
-rw-r--r--src/routes.php1
3 files changed, 2 insertions, 5 deletions
diff --git a/composer.json b/composer.json
index ff5330d..6dafa2f 100644
--- a/composer.json
+++ b/composer.json
@@ -8,7 +8,7 @@
}
],
"require": {
- "php": ">=5.4.0",
+ "php": ">=5.5.0",
"illuminate/support": "5.0.*",
"dingo/api": "0.9.*@dev"
},
diff --git a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
index bb90671..cbedf9f 100644
--- a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
+++ b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
@@ -21,9 +21,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider {
*/
public function boot()
{
- #$this->package('camil-staps/botleagues-api', null, __DIR__.'/../..');
- #$this->loadAutoloader(base_path('vendor'));
-
$this->loadViewsFrom(__DIR__ . '/../../views', 'botleagues-api');
$this->publishes([ __DIR__ . '/../../views' => base_path('resources/view/vendor/botleagues-api')], 'views');
@@ -31,7 +28,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider {
include __DIR__ . '/../../filters.php';
- $api = app('api.router');
include __DIR__ . '/../../routes.php';
// To allow loading API requests from the specified domain
diff --git a/src/routes.php b/src/routes.php
index d424db8..b11e2ff 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -1,4 +1,5 @@
<?php
+$api = app('api.router');
Route::group(['https'], function() use ($api) {
$api->version('v1', ['protected' => false], function ($api) {