Hi i want to inject a service Class without call her constructor, be cose i havent yet the argument to pass to this constructor class injected.
Exemple:
services:
your.service.name:
class: AppBundle\Services\YourClassName
arguments: ['@doctrine.services.paginator']
doctrine.services.paginator:
class: Doctrine\ORM\Tools\Pagination\Paginator
public: false
return error
Type error: Too few arguments to function Doctrine\ORM\Tools\Pagination\Paginator::__construct(), 0 passed in ... and at least 1 expected
Paginatorwithout calling the constructor? I have a feeling your trying to go about something the wrong way. - qooplmao