Skip to content
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

Support autowiring for Symfony 4 #157

Closed
gander opened this issue Sep 27, 2018 · 2 comments
Closed

Support autowiring for Symfony 4 #157

gander opened this issue Sep 27, 2018 · 2 comments

Comments

@gander
Copy link
Contributor

gander commented Sep 27, 2018

I would like to use autowiring in Symfony 4 without having to enter it in the service configuration:

services:
    Sentry\SentryBundle\SentrySymfonyClient: '@sentry.client'
<?php

namespace App\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sentry\SentryBundle\SentrySymfonyClient;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

class DefaultController extends AbstractController
{
    /**
     * @Route("/", name="homepage")
     * @param SentrySymfonyClient $client
     * @Template()
     */
    public function index(SentrySymfonyClient $client)
    {
    }
}
@Jean85
Copy link
Collaborator

Jean85 commented Sep 27, 2018

Good idea, PR welcome on this!

@Jean85
Copy link
Collaborator

Jean85 commented Oct 29, 2018

This is solved by #158.

@Jean85 Jean85 closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants