Skip to content

Commit

Permalink
Merge pull request #79 from das-peter/windows-class-naming-fix
Browse files Browse the repository at this point in the history
Issue #2522032 by das-peter: AnnotatedClassDiscovery::getDefinitions(…
  • Loading branch information
drupol committed Jul 2, 2015
2 parents 1de9f3d + 311c362 commit ab5a955
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function getDefinitions() {
foreach ($iterator as $fileinfo) {
if ($fileinfo->getExtension() == 'php') {
$sub_path = $iterator->getSubIterator()->getSubPath();
$sub_path = $sub_path ? str_replace(DIRECTORY_SEPARATOR, '\\', $sub_path) . '\\' : '';
$class = $namespace . '\\' . str_replace(DIRECTORY_SEPARATOR, '\\', $this->pluginManagerDefinition['directory']) . '\\' . $sub_path . $fileinfo->getBasename('.php');
$sub_path = $sub_path ? str_replace('/', '\\', $sub_path) . '\\' : '';
$class = $namespace . '\\' . str_replace('/', '\\', $this->pluginManagerDefinition['directory']) . '\\' . $sub_path . $fileinfo->getBasename('.php');

// The filename is already known, so there is no need to find the
// file. However, StaticReflectionParser needs a finder, so use a
Expand Down

0 comments on commit ab5a955

Please sign in to comment.