Moved the defining to the autoload.php file
This commit is contained in:
@@ -28,8 +28,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet', 'CachetHQ\Cachet\Handlers');
|
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet', 'CachetHQ\Cachet\Handlers');
|
||||||
});
|
});
|
||||||
|
|
||||||
define('CACHET_VERSION', trim(file_get_contents($this->app->basePath().'/VERSION')));
|
|
||||||
|
|
||||||
Str::macro('canonicalize', function ($url) {
|
Str::macro('canonicalize', function ($url) {
|
||||||
return preg_replace('/([^\/])$/', '$1/', $url);
|
return preg_replace('/([^\/])$/', '$1/', $url);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
define('LARAVEL_START', microtime(true));
|
define('LARAVEL_START', microtime(true));
|
||||||
|
|
||||||
|
define('CACHET_VERSION', trim(file_get_contents(__DIR__.'/../VERSION')));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Register The Composer Auto Loader
|
| Register The Composer Auto Loader
|
||||||
|
|||||||
Reference in New Issue
Block a user