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

Add Symfony 4 examples #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add Symfony 4 examples #3

wants to merge 3 commits into from

Conversation

tacman
Copy link
Contributor

@tacman tacman commented Dec 3, 2018

Use Dependency Injection instead of the container.

Use Dependency Injection instead of the container.
@peter-gribanov
Copy link

@tacman this code in your PR is not working

use Javer\SphinxBundle\Sphinx\Manager;
use Knp\Component\Pager\Pagination\PaginationInterface;
use Doctrine\ORM\EntityManagerInterface;
     public function __construct(EntityManagerInterface $em, 
                                PaginatorInterface $paginator,
                                Manager $sphinx)
                                
    private $sphinx;
    private $em;
    private $paginator;
                                
    {
        $this->sphinx = $sphinx;
        $this->em = $em;
        $this->paginator = $paginator;
    }

Do you declare the global function __construct()?
Maybe this is a class code?
Why do you declare properties in the middle of a function/method declaration?

@tacman
Copy link
Contributor Author

tacman commented Dec 3, 2018 via email

@tacman
Copy link
Contributor Author

tacman commented Dec 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants