Skip to content

Commit

Permalink
Merge pull request #55 from robbieaverill/pulls/1.0/fix-lookup-module
Browse files Browse the repository at this point in the history
FIX Return resolved module name rather than original class module name
  • Loading branch information
robbieaverill authored Apr 26, 2018
2 parents 43c5e55 + 741fcd2 commit 2eccc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Object/LookupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$resolvedTo = get_class(Injector::inst()->get($object));

$output->writeln('<comment>' . $object . '</comment> resolves to <info>' . $resolvedTo . '</info>');
if ($module = $this->getModuleName($object)) {
if ($module = $this->getModuleName($resolvedTo)) {
$output->writeln('<info>Module:</info> <comment>' . $module . '</comment>');
}
}
Expand Down

0 comments on commit 2eccc1d

Please sign in to comment.