protected function registerTheme(SplFileInfo $themeClassPath)
    {
        $themeName = preg_replace('/Theme\.php$/', '', $themeClassPath->getFilename());
        $themeClass = sprintf('Ladybug\\Theme\\%s\\%sTheme', $themeName, $themeName);
        $themePath = dirname($themeClassPath->getRealPath());

        $this->container->register('theme_'.$themeName, $themeClass)
            ->addArgument($themePath)
            ->addTag('ladybug.theme');
    }
protected function registerTheme(SplFileInfo $themeClassPath)
    {
        $themeName = preg_replace('/Theme\.php$/', '', $themeClassPath->getFilename());
        $themeClass = sprintf('Ladybug\\Theme\\%s\\%sTheme', $themeName, $themeName);
        $themePath = dirname($themeClassPath->getRealPath());

        $this->container->register('theme_'.$themeName, $themeClass)
            ->addArgument($themePath)
            ->addTag('ladybug.theme');
    }
protected function registerTheme ( SplFileInfo $ themeClassPath ) { $ themeName = preg_replace ( '/Theme\.php$/' , '' , $ themeClassPath -> getFilename ( ) ) ; $ themeClass = sprintf ( 'Ladybug\\Theme\\%s\\%sTheme' , $ themeName , $ themeName ) ; $ themePath = dirname ( $ themeClassPath -> getRealPath ( ) ) ; $ this -> container -> register ( 'theme_' . $ themeName , $ themeClass ) -> addArgument ( $ themePath ) -> addTag ( 'ladybug.theme' ) ; }
Registers a new theme from a directory.
@param \Symfony\Component\Finder\SplFileInfo $themeClassPath
Registers a new theme from a directory .