You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have symfony 6.3 and php 8.2. I run composer require unleash/symfony-client-bundle:0.10.0 and after that I registered the bundle as stated in the documentation. Then I generated the config.
Then if I try php bin/console cache:clear or use Unleash\Client\Unleash I get the following error:
Attempted to load class "EventDispatcher" from namespace "Unleash\Client\Helper".
Did you forget a "use" statement for e.g. "Symfony\Component\EventDispatcher\EventDispatcher" or "JMS\Serializer\EventDispatche
r\EventDispatcher"?
To reproduce
Run composer require unleash/symfony-client-bundle:0.10.0
Add Unleash\Client\Bundle\UnleashSymfonyClientBundle to config/bundles.php
Run php bin/console config:dump unleash_symfony_client > config/packages/unleash_symfony_client.yaml
Run php bin/console cache:clear
Sample code (optional)
No response
Version
0.10.0
Expected behavior
Running the command php bin/console cache:clear should not report an error.
Logs (optional)
app.WARNING: Failed to generate ConfigBuilder for extension Unleash\Client\Bundle\DependencyInjection\UnleashSymfonyClientExtension: Impossible to call set() on a frozen ParameterBag. {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\LogicException(code: 0): Impossible to call set() on a frozen ParameterBag. at /home/somebody/projects/my-app/vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php:58)","extensionClass":"Unleash\\Client\\Bundle\\DependencyInjection\\UnleashSymfonyClientExtension"} []
11:03:31 WARNING [app] Failed to generate ConfigBuilder for extension Unleash\Client\Bundle\DependencyInjection\UnleashSymfonyClientExtension: Impossible to call set() on a frozen ParameterBag. ["exception" => Symfony\Component\DependencyInjection\Exception\LogicException^ { …},"extensionClass" => "Unleash\Client\Bundle\DependencyInjection\UnleashSymfonyClientExtension"]
[2023-11-28T11:03:31.795406+00:00] php.CRITICAL: Uncaught Error: Class "Unleash\Client\Helper\EventDispatcher" not found {"exception":"[object] (Error(code: 0): Class \"Unleash\\Client\\Helper\\EventDispatcher\" not found at /home/somebody/projects/my-app/var/cache/dev/ContainerVjTV1Xw/My_App_KernelDevDebugContainer.php:1841)"} []
11:03:31 CRITICAL [php] Uncaught Error: Class "Unleash\Client\Helper\EventDispatcher" not found ["exception" => Error { …}]
In My_App_KernelDevDebugContainer.php line 1841:
Attempted to load class "EventDispatcher" from namespace "Unleash\Client\Helper".
Did you forget a "use" statement for e.g. "Symfony\Component\EventDispatcher\EventDispatcher" or "JMS\Serializer\EventDispatche
r\EventDispatcher"?
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
I have symfony 6.3 and php 8.2. I run
composer require unleash/symfony-client-bundle:0.10.0
and after that I registered the bundle as stated in the documentation. Then I generated the config.Then if I try
php bin/console cache:clear
oruse Unleash\Client\Unleash
I get the following error:To reproduce
composer require unleash/symfony-client-bundle:0.10.0
Unleash\Client\Bundle\UnleashSymfonyClientBundle
toconfig/bundles.php
php bin/console config:dump unleash_symfony_client > config/packages/unleash_symfony_client.yaml
php bin/console cache:clear
Sample code (optional)
No response
Version
0.10.0
Expected behavior
Running the command
php bin/console cache:clear
should not report an error.Logs (optional)
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: