Closed
Description
Q | A |
---|---|
Bug? | yes |
New Feature? | no |
Version | any |
Actual Behavior
This bundle don't work with Symfony 3.4 (error occurred when the cache is clear) :
Fatal error: Cannot use Http\Client\Common\PluginClientFactory as PluginClientFactory because the name is already in use in vendor\php-http\httplug-bundle\Collector\PluginClientFactoryListener.php on line 5
Expected Behavior
Work with Symfony 3.4.
Steps to Reproduce
Clear cache with Symfony 3.4 and Httplug Bundle 1.*.
Possible Solutions
There is already a class called PluginClientFactory
in the Http\HttplugBundle\Collector
namespace.
So, use another alias to Http\Client\Common\PluginClientFactory
in the Http\HttplugBundle\Collector\PluginClientFactoryListener
:
<?php
namespace Http\HttplugBundle\Collector;
// Before :
use Http\Client\Common\PluginClientFactory
// After
use Http\Client\Common\PluginClientFactory as CommonPluginClientFactory;
Metadata
Metadata
Assignees
Labels
No labels