Skip to content

Eliminate AnnotationRegistry, rely on autoloading only#205

Merged
Ocramius merged 2 commits intodoctrine:masterfrom
Majkl578:drop-AnnotationRegistry
May 9, 2018
Merged

Eliminate AnnotationRegistry, rely on autoloading only#205
Ocramius merged 2 commits intodoctrine:masterfrom
Majkl578:drop-AnnotationRegistry

Conversation

@Majkl578
Copy link
Copy Markdown
Contributor

@Majkl578 Majkl578 commented May 9, 2018

Dropping AnnotationRegistry completely, relying on native autoloadin instead.

Incorporates #61 as a separate commit to keep attributions of @kingcrunch.

Comment thread tests/Doctrine/Tests/TestInit.php Outdated

// final check, does this class exist?
return $this->classExists[$fqcn] = AnnotationRegistry::loadAnnotationClass($fqcn);
return $this->classExists[$fqcn] = class_exists($fqcn);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entire private method can be dropped

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not: what is our reason for caching a failure?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole thing will be gone soon once Hoa parser is in place so I'd ignore that for now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, let's not touch it for now 👌

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole thing will be gone soon once Hoa parser is in place

What's that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprise. 🎁

@Majkl578 Majkl578 force-pushed the drop-AnnotationRegistry branch from 5172aef to 90a4524 Compare May 9, 2018 18:42
@Majkl578 Majkl578 force-pushed the drop-AnnotationRegistry branch from 90a4524 to 467c5c3 Compare May 9, 2018 18:45
@Ocramius Ocramius self-assigned this May 9, 2018
@Ocramius Ocramius merged commit fee062c into doctrine:master May 9, 2018
@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented May 9, 2018

Thanks @kingcrunch and @Majkl578!

@Majkl578 Majkl578 deleted the drop-AnnotationRegistry branch May 9, 2018 18:49
@Majkl578 Majkl578 mentioned this pull request Apr 3, 2019
27 tasks
Kutuzovska added a commit to Kutuzovska/yii-cycle that referenced this pull request Jun 22, 2023
In doctrine v2+ "AnnotationRegistry::registerLoader" - Feature has been removed. doctrine/annotations#205
Kutuzovska added a commit to Kutuzovska/yii-cycle that referenced this pull request Jun 22, 2023
In doctrine v2+ "AnnotationRegistry::registerLoader" - Feature has been removed. doctrine/annotations#205
IssamRaouf added a commit to IssamRaouf/symfony-docs that referenced this pull request Jul 24, 2023
[Dropping AnnotationRegistry completely, relying on native autoloading instead](doctrine/annotations#205)
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Jul 28, 2023
…stry::registerLoader (IssamRaouf)

This PR was merged into the 5.4 branch.

Discussion
----------

[micro_kernel] Fix deleted feature AnnotationRegistry::registerLoader

[Dropping AnnotationRegistry completely, relying on native autoloading instead](doctrine/annotations#205) v2.0.0

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).

-->

Commits
-------

9168b9d [micro_kernel] Fix deleted method AnnotationRegistry::registerLoader
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