private function addResourcesDir(Config $config, callable $recipe = null)
    {
        if (false === $this->runRecipe($config, $recipe)) {
            $baseDir = dirname($config->getBaseDir()).DIRECTORY_SEPARATOR;
            $directory = realpath($baseDir.DIRECTORY_SEPARATOR.'Resources');

            if (false === $directory) {
                $directory = realpath($baseDir.DIRECTORY_SEPARATOR.'Ressources');
            }

            if (false !== $directory) {
                $this->application->pushResourceDir($directory);
            }
        }
    }