What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi Team can anyone help me Error - Exception: Undefined constant Pyz\Zed\Console\ConsoleDependencyPr

U04UE6DF06N
U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet

Hi Team
can anyone help me
Error - Exception: Undefined constant Pyz\Zed\Console\ConsoleDependencyProvider::COMMAND_SEPARATOR
in /data/src/Pyz/Zed/Console/ConsoleDependencyProvider.php (349)

Command: /data/vendor/bin/console data:import:acl-role

Trace:

0 /data/vendor/spryker/console/src/Spryker/Zed/Console/ConsoleDependencyProvider.php(89): Pyz\Zed\Console\ConsoleDependencyProvider->getConsoleCommands(Object(Spryker\Zed\Kernel\Container))

1 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(279): Spryker\Zed\Console\ConsoleDependencyProvider->Spryker\Zed\Console{closure}(Object(Spryker\Zed\Kernel\Container))

2 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(216): Spryker\Service\Container\Container->getService('commands')

3 /data/vendor/spryker/kernel/src/Spryker/Zed/Kernel/BundleDependencyProviderResolverAwareTrait.php(54): Spryker\Service\Container\Container->get('commands')

4 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleCommunicationFactory.php(54): Spryker\Zed\Kernel\AbstractFactory->getProvidedDependency('commands')

5 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(66): Spryker\Zed\Console\Communication\ConsoleCommunicationFactory->getConsoleCommands()

6 /data/vendor/symfony/console/Application.php(1297): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->getDefaultCommands()

7 /data/vendor/symfony/console/Application.php(673): Symfony\Component\Console\Application->init()

8 /data/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find('data:import:acl...')

9 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(114): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

10 /data/vendor/symfony/console/Application.php(171): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

11 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()

12 /data/vendor/bin/console(120): include('/data/vendor/sp...')

13

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    Hey @U04UE6DF06N, let me try to guide you to help yourself for the standard php exceptions in the future:

    What does the first line of your exception message say? - there are at least 3 important hints in the given exception message