register() public static method

public static register ( Slim\App $app )
$app Slim\App
Example #1
0
 public function afterInitialization()
 {
     parent::afterInitialization();
     $this->adminPanelMenuRegister();
     $this->container->dispatcher->addListener('app.beforeRun', function ($event) {
         $event->getApp()->group('/admin', function () {
             AdminRouteCollection::register($this);
         })->add(new AuthMiddleware());
     }, -980);
 }