File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 */
3333require CORE_PATH . 'config ' . DS . 'bootstrap.php ' ;
3434
35- use App \Event \AfterGithubIdentify ;
3635use Cake \Cache \Cache ;
3736use Cake \Core \Configure ;
3837use Cake \Core \Configure \Engine \PhpConfig ;
3938use Cake \Datasource \ConnectionManager ;
4039use Cake \Error \ErrorTrap ;
4140use Cake \Error \ExceptionTrap ;
42- use Cake \Event \EventManager ;
4341use Cake \Http \ServerRequest ;
4442use Cake \Log \Log ;
4543use Cake \Mailer \Mailer ;
207205 return $ detector ->isTablet ();
208206});
209207
210- EventManager::instance ()->on (new AfterGithubIdentify ());
211-
212208/*
213209 * You can enable default locale format parsing by adding calls
214210 * to `useLocaleParser()`. This enables the automatic conversion of
Original file line number Diff line number Diff line change 1717namespace App ;
1818
1919use ADmad \SocialAuth \Middleware \SocialAuthMiddleware ;
20+ use App \Event \AfterGithubIdentify ;
2021use Authentication \AuthenticationService ;
2122use Authentication \AuthenticationServiceInterface ;
2223use Authentication \AuthenticationServiceProviderInterface ;
2526use Cake \Core \ContainerInterface ;
2627use Cake \Datasource \FactoryLocator ;
2728use Cake \Error \Middleware \ErrorHandlerMiddleware ;
29+ use Cake \Event \EventManager ;
2830use Cake \Http \BaseApplication ;
2931use Cake \Http \Middleware \BodyParserMiddleware ;
3032use Cake \Http \Middleware \CsrfProtectionMiddleware ;
@@ -62,6 +64,8 @@ public function bootstrap(): void
6264 (new TableLocator ())->allowFallbackClass (false ),
6365 );
6466 }
67+
68+ EventManager::instance ()->on (new AfterGithubIdentify ());
6569 }
6670
6771 /**
You can’t perform that action at this time.
0 commit comments