This commit is contained in:
Graham Campbell
2015-06-12 22:46:41 +01:00
parent bf53768530
commit 8f7b538fac

View File

@@ -29,7 +29,7 @@ class AppServiceProvider extends ServiceProvider
$dispatcher->mapUsing(function ($command) {
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet\Commands', 'CachetHQ\Cachet\Handlers\Commands');
});
Str::macro('canonicalize', function ($url) {
return preg_replace('/([^\/])$/', '$1/', $url);
});