Skip to content

Conversation

@jrushlow
Copy link
Collaborator

@jrushlow jrushlow commented Dec 4, 2020

fixes #750

@jrushlow jrushlow added Status: Needs Work Additional work is needed Related Tests Pass Status: Needs Review Needs to be reviewed and removed Status: Needs Work Additional work is needed labels Dec 4, 2020
$version = $this->getPhpVersion();

return version_compare($version, '8alpha', '>=');
return version_compare($version, '8alpha', '>=') && Kernel::VERSION_ID >= 50200;
Copy link
Member

Choose a reason for hiding this comment

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

We should probably make this method more specific. This is really about routing attributes. But soon we will probably start using Doctrine attributes and then other things. Possibly we could rename this to canUseRouteAttributes() and add other methods later.

@weaverryan weaverryan force-pushed the fix/attributes-before-52 branch from abbaee7 to 4dd942f Compare December 7, 2020 14:17
@weaverryan
Copy link
Member

I did leave one comment I think we should address later, but as this is internal and fixes a bug, merging now. Thanks!

@weaverryan weaverryan merged commit d1dee90 into symfony:main Dec 7, 2020
@jrushlow jrushlow deleted the fix/attributes-before-52 branch December 7, 2020 14:17
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.

make controller generates controller with attributes but symfony does not support it yet

2 participants