Author: Carson Full (carsonfull@gmail.com)
Inheritance: extends Bolt\Controller\Base
Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
File: Upload.php Progetto: bolt/bolt
 /**
  * @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');
 }