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');
    }