mirror of
https://github.com/flextype/flextype.git
synced 2025-08-19 03:11:21 +02:00
Flextype Site Plugin: fixes and refactoring #154
This commit is contained in:
@@ -11,9 +11,5 @@ $loader = require_once $autoload;
|
||||
// Include routes
|
||||
include_once 'routes/web.php';
|
||||
|
||||
/**
|
||||
* Add site controller to Flextype container
|
||||
*/
|
||||
$flextype['SiteController'] = function($container) {
|
||||
return new SiteController($container);
|
||||
};
|
||||
// Include dependencies
|
||||
include_once 'dependencies.php';
|
||||
|
10
site/plugins/site/dependencies.php
Normal file
10
site/plugins/site/dependencies.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
/**
|
||||
* Add site controller to Flextype container
|
||||
*/
|
||||
$flextype['SiteController'] = function($container) {
|
||||
return new SiteController($container);
|
||||
};
|
Reference in New Issue
Block a user