Move Foundation registration out

This commit is contained in:
Samuel Georges 2015-02-07 15:07:56 +11:00
parent 9a616b6174
commit f08f954248
2 changed files with 0 additions and 24 deletions

View File

@ -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?

View File

@ -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;
});