Move Foundation registration out
This commit is contained in:
parent
9a616b6174
commit
f08f954248
|
|
@ -57,8 +57,6 @@ The following methods have changed:
|
|||
### Things to do
|
||||
|
||||
- Custom Exception Handler needs attention
|
||||
- Move storage/cache generated by CMS to storate/cms/cache
|
||||
- Fix clear cache command so it actually works
|
||||
- Fix unit tests
|
||||
- Dispatcher now native?
|
||||
- Cron queue type now native?
|
||||
|
|
@ -38,31 +38,9 @@ class ServiceProvider extends ModuleServiceProvider
|
|||
*/
|
||||
parent::register('system');
|
||||
|
||||
/*
|
||||
* Define path constants
|
||||
*/
|
||||
if (!defined('PATH_APP')) {
|
||||
define('PATH_APP', app_path());
|
||||
}
|
||||
if (!defined('PATH_BASE')) {
|
||||
define('PATH_BASE', base_path());
|
||||
}
|
||||
if (!defined('PATH_PUBLIC')) {
|
||||
define('PATH_PUBLIC', public_path());
|
||||
}
|
||||
if (!defined('PATH_STORAGE')) {
|
||||
define('PATH_STORAGE', storage_path());
|
||||
}
|
||||
if (!defined('PATH_PLUGINS')) {
|
||||
define('PATH_PLUGINS', base_path() . Config::get('cms.pluginsDir', '/plugins'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Register singletons
|
||||
*/
|
||||
App::singleton('string', function () {
|
||||
return new \October\Rain\Support\Str;
|
||||
});
|
||||
App::singleton('backend.helper', function () {
|
||||
return new \Backend\Classes\BackendHelper;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue