Fixed transformToLogicalName() method

This fix should solve some bugs on Windows platforms.
This commit is contained in:
William DURAND 2011-12-05 22:00:00 +01:00
parent ab50b5ec39
commit bacae3feae

View file

@ -483,7 +483,7 @@ EOT;
private function transformToLogicalName(\SplFileInfo $schema, BundleInterface $bundle)
{
$schemaPath = str_replace($bundle->getPath().'/Resources/config/', '', $schema->getPathname());
$schemaPath = str_replace($bundle->getPath(). DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR, '', $schema->getRealPath());
return sprintf('@%s/Resources/config/%s', $bundle->getName(), $schemaPath);
}