Thanks to visit codestin.com
Credit goes to github.com

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

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Now that apps are usually bundle-less, we're missing a way to defined the classes to parse annotations for. Here is a PR fixing this by allowing ppl to define a new getAnnotatedClassesToCompile() on their kernel when needed.

@Tobion
Copy link
Contributor

Tobion commented May 6, 2018

Btw what is the purpose of the annoted class cache?

@nicolas-grekas
Copy link
Member Author

The purpose is being able to warmup the annotations' cached reader. Without that, annotations are parsed at runtime the first time

@fabpot
Copy link
Member

fabpot commented May 7, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 1d2a49a into symfony:master May 7, 2018
fabpot added a commit that referenced this pull request May 7, 2018
…) (nicolas-grekas)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[HttpKernel] Add Kernel::getAnnotatedClassesToCompile()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Now that apps are usually bundle-less, we're missing a way to defined the classes to parse annotations for. Here is a PR fixing this by allowing ppl to define a new `getAnnotatedClassesToCompile()` on their kernel when needed.

Commits
-------

1d2a49a [HttpKernel] Add Kernel::getAnnotatedClassesToCompile()
@fabpot fabpot mentioned this pull request May 7, 2018
@nicolas-grekas nicolas-grekas deleted the kernel-annotated branch May 8, 2018 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants