Answer the question
In order to leave comments, you need to log in
Make a service from a third party library?
Composer loaded the library and is available PSR-4 by namespace. There you need to pass one parameter to the constructor, I try to define it as a service, but it does not find this class - it says that it does not exist, but everyone, including the IDE, sees it. If you try to add by use ... new ... it is, but as a service, it does not want to.
services:
Some\Other\Libs:
public: true
arguments:
$projectDir: '%kernel.project_dir%'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question