From 10eeb245a036542bd5da5ba46a32c1ac6e44ea00 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 7 Jun 2019 01:31:18 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - Refactoring --- site/plugins/admin/bootstrap.php | 4 ++-- site/plugins/admin/composer.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/plugins/admin/bootstrap.php b/site/plugins/admin/bootstrap.php index 5af66706..30027c98 100755 --- a/site/plugins/admin/bootstrap.php +++ b/site/plugins/admin/bootstrap.php @@ -13,9 +13,8 @@ namespace Flextype; * file that was distributed with this source code. */ -use Flextype\Component\Registry\Registry; -use Flextype\Component\I18n\I18n; use Flextype\Component\Arr\Arr; +use Flextype\Component\I18n\I18n; use function Flextype\Component\I18n\__; $uri = explode('/', \Slim\Http\Uri::createFromEnvironment(new \Slim\Http\Environment($_SERVER))->getPath()); @@ -28,6 +27,7 @@ if (isset($uri) && isset($uri[0]) && $uri[0] == 'admin') { // Register The Auto Loader $loader = require_once $autoload; + // Include routes include_once 'routes/web.php'; // Set Default Admin locale diff --git a/site/plugins/admin/composer.json b/site/plugins/admin/composer.json index 6ebd1d8d..e5c7bd09 100755 --- a/site/plugins/admin/composer.json +++ b/site/plugins/admin/composer.json @@ -3,7 +3,7 @@ "type": "project", "description": "Admin plugin for Flextype", "keywords": ["admin", "plugin", "manager", "panel", "flextype", "php", "html"], - "homepage": "https://github.com/flextype-plugins/admin", + "homepage": "https://github.com/flextype", "license": "MIT", "authors": [ { @@ -13,7 +13,7 @@ } ], "support": { - "issues": "https://github.com/flextype-plugins/admin/issues" + "issues": "https://github.com/flextype/issues" }, "require": { "php": ">=7.1.3",