diff --git a/src/Command/Object/LookupCommand.php b/src/Command/Object/LookupCommand.php index 5d489b9..2e839fb 100644 --- a/src/Command/Object/LookupCommand.php +++ b/src/Command/Object/LookupCommand.php @@ -39,7 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $resolvedTo = get_class(Injector::inst()->get($object)); $output->writeln('' . $object . ' resolves to ' . $resolvedTo . ''); - if ($module = $this->getModuleName($object)) { + if ($module = $this->getModuleName($resolvedTo)) { $output->writeln('Module: ' . $module . ''); } }