Skip to content

Added the missing annotations to a routing example #11159

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
Mar 15, 2019

Conversation

javiereguiluz
Copy link
Member

No description provided.

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;

class MainController extends Controller
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not extending AbstractController here which was introduced in 3.3?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right ... but in 3.4 we keep extending from Controller. In 4.2 and master we extend from AbstractController.

@javiereguiluz javiereguiluz merged commit e18236c into symfony:3.4 Mar 15, 2019
javiereguiluz added a commit that referenced this pull request Mar 15, 2019
…ereguiluz)

This PR was merged into the 3.4 branch.

Discussion
----------

Added the missing annotations to a routing example

Commits
-------

e18236c Added the missing annotations to a routing example
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.

3 participants