Moved the defining to the autoload.php file

This commit is contained in:
Graham Campbell
2015-11-04 17:39:16 +00:00
parent 3b7308dccd
commit b8fa1f0111
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -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);
}); });
+2
View File
@@ -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