/** * {@inheritdoc} */ public function register(Container $app) { $app['controller.admin.security'] = function () { return new Admin\SecurityController(); }; $app['controller.admin.password'] = function () { return new Admin\PasswordController(); }; $app['controller.admin.dashboard'] = function () { return new Admin\DashboardController(); }; $app->mount('/admin', $app['controller.admin.security']); $app->mount('/admin', $app['controller.admin.password']); $app->mount('/admin', $app['controller.admin.dashboard']); }