8000 [HttpKernel] Add Kernel::getAnnotatedClassesToCompile() by nicolas-grekas · Pull Request #27168 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel] Add Kernel::getAnnotatedClassesToCompile() #27168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[HttpKernel] Add Kernel::getAnnotatedClassesToCompile()
  • Loading branch information
nicolas-grekas committed May 5, 2018
commit 1d2a49aeb6b5ec4c0a75faa3f3665121dd32466b
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(Kernel $kernel)
*/
public function process(ContainerBuilder $container)
{
$annotatedClasses = array();
$annotatedClasses = $this->kernel->getAnnotatedClassesToCompile();
foreach ($container->getExtensions() as $extension) {
if ($extension instanceof Extension) {
$annotatedClasses = array_merge($annotatedClasses, $extension->getAnnotatedClassesToCompile());
Expand Down
8 changes: 8 additions & 0 deletions src/Symfony/Component/HttpKernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,14 @@ public function getCharset()
return 'UTF-8';
}

/**
* Gets the patterns defining the classes to parse and cache for annotations.
*/
public function getAnnotatedClassesToCompile(): array
{
return array();
}

/**
* Initializes bundles.
*
Expand Down
0