Skip to content

Commit bf1b092

Browse files
committed
updating for now-missing property
1 parent b5658c2 commit bf1b092

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Command/MakerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ protected function initialize(InputInterface $input, OutputInterface $output)
7272

7373
protected function interact(InputInterface $input, OutputInterface $output)
7474
{
75-
if (!$this->fileManager->isNamespaceConfiguredToAutoload($this->rootNamespace)) {
75+
if (!$this->fileManager->isNamespaceConfiguredToAutoload($this->generator->getRootNamespace())) {
7676
$this->io->note([
77-
sprintf('It looks like your app may be using a namespace other than "%s".', $this->rootNamespace),
77+
sprintf('It looks like your app may be using a namespace other than "%s".', $this->generator->getRootNamespace()),
7878
'To configure this and make your life easier, see: https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html#configuration.',
7979
]);
8080
}

src/Generator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,9 @@ public function writeChanges()
170170

171171
$this->pendingOperations = [];
172172
}
173+
174+
public function getRootNamespace(): string
175+
{
176+
return $this->namespacePrefix;
177+
}
173178
}

0 commit comments

Comments
 (0)