/** * Middleware function to check whether a user is logged on. * * @param Request $request * @param \Silex\Application $app * * @return null|\Symfony\Component\HttpFoundation\RedirectResponse */ public function before(Request $request, Silex\Application $app, $roleRoute = null) { return parent::before($request, $app, 'extensions'); }
/** * @param Request $request * @param Application $app * @param null $roleRoute * * @return null|\Symfony\Component\HttpFoundation\RedirectResponse */ public function before(Request $request, Application $app, $roleRoute = null) { return parent::before($request, $app, 'files:uploads'); }