/** * @param \League\Container\ContainerInterface $app */ protected function registerEngine(ContainerInterface $app) { $app->add('Plates.Engine', new Engine(null, $app->config('plates.extension'))); $themeDir = vsprintf('%s/%s', [$app->config('plates.templatesDir'), $app->config('app.theme')]); $app->get('Plates.Engine')->addFolder('theme', $themeDir); }