Skip to content

Commit

Permalink
Extension: Add support for CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jan 20, 2021
1 parent 0e0af89 commit 6c7ce6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DocExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public function beforeCompile(): void

public function afterCompile(ClassType $class): void
{
if (PHP_SAPI === 'cli') {
return;
}
/** @var ServiceDefinition $application */
$application = $this->getContainerBuilder()->getDefinitionByType(Application::class);

Expand Down

0 comments on commit 6c7ce6b

Please sign in to comment.