Skip to content

Commit

Permalink
updating for now-missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed May 17, 2018
1 parent b5658c2 commit bf1b092
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/MakerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ protected function initialize(InputInterface $input, OutputInterface $output)

protected function interact(InputInterface $input, OutputInterface $output)
{
if (!$this->fileManager->isNamespaceConfiguredToAutoload($this->rootNamespace)) {
if (!$this->fileManager->isNamespaceConfiguredToAutoload($this->generator->getRootNamespace())) {
$this->io->note([
sprintf('It looks like your app may be using a namespace other than "%s".', $this->rootNamespace),
sprintf('It looks like your app may be using a namespace other than "%s".', $this->generator->getRootNamespace()),
'To configure this and make your life easier, see: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html#configuration.',
]);
}
Expand Down
5 changes: 5 additions & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,9 @@ public function writeChanges()

$this->pendingOperations = [];
}

public function getRootNamespace(): string
{
return $this->namespacePrefix;
}
}

0 comments on commit bf1b092

Please sign in to comment.