Author: Carson Full (carsonfull@gmail.com)
Inheritance: extends Bolt\Controller\Base
Example #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');
 }
Example #2
0
File: Upload.php Project: 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');
 }