Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Provide auto-wiring for browscap service #24

Open
soullivaneuh opened this issue Mar 6, 2018 · 0 comments
Open

Provide auto-wiring for browscap service #24

soullivaneuh opened this issue Mar 6, 2018 · 0 comments

Comments

@soullivaneuh
Copy link
Contributor

  [Symfony\Component\DependencyInjection\Exception\RuntimeException]                                                                                                                                                                                    
  Cannot autowire service "AppBundle\Manager\BrowserManager": argument "$browscap" of method "__construct()" references class "phpbrowscap\Browscap" but no such service exists. You should maybe alias this class to the existing "browscap" service.  

Workaround:

$container->addAliases([
    \phpbrowscap\Browscap::class => 'browscap',
]);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant