'apiIsConnected', ]; } /** * method for api * @return JsonResponse */ public function apiIsConnected(): JsonResponse { return new JsonResponse(200,['connected'=>false]); } /** * Triggered when Pico registers the twig template engine * * @see Pico::getTwig() * * @param Twig_Environment &$twig Twig instance */ public function onTwigRegistered(Twig_Environment &$twig) { $twigLoader = $twig->getLoader(); $templateDir = $this->getPluginsDir().'SeacmsAuth/templates'; if (is_dir($templateDir)){ $twigLoader->addPath($templateDir, 'SeacmsAuth'); } } }