mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-04-22 16:31:56 +02:00
Moved the defining to the autoload.php file
This commit is contained in:
parent
3b7308dccd
commit
b8fa1f0111
@ -28,8 +28,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
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) {
|
||||
return preg_replace('/([^\/])$/', '$1/', $url);
|
||||
});
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
define('CACHET_VERSION', trim(file_get_contents(__DIR__.'/../VERSION')));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Composer Auto Loader
|
||||
|
Loading…
x
Reference in New Issue
Block a user