Skip to content

Extension Manager not working animore in 0.4.2 #183

@jonashrem

Description

@jonashrem

when I try to run a custom extension, I get this error in sw-cli-tools 0.4.2

the same one worked just fine in 0.2.0


Fatal error: Uncaught Error: Class 'MAXCLUSTER\Shopware\Bootstrap' not found in phar:///usr/bin/sw/src/Application/ExtensionManager.php:63
Stack trace:
#0 phar:///usr/bin/sw/src/Application/ExtensionManager.php(126): ShopwareCli\Application\ExtensionManager->bootstrapExtension('MAXCLUSTER\\Shop...')
#1 phar:///usr/bin/sw/src/Application/ExtensionManager.php(51): ShopwareCli\Application\ExtensionManager->discoverVendorFolder('/var/www/share/...', 'MAXCLUSTER')
#2 phar:///usr/bin/sw/src/Application.php(153): ShopwareCli\Application\ExtensionManager->discoverExtensions(Array)
#3 phar:///usr/bin/sw/src/Application.php(59): ShopwareCli\Application->loadExtensions(false)
#4 phar:///usr/bin/sw/vendor/symfony/console/Application.php(149): ShopwareCli\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 phar:///usr/bin/sw/bin/sw(18): Symfony\Component\Console\Application->run()
#6 /usr/bin/sw(14): require('phar:///usr/bin...')
#7 {main}
  thrown in phar:///usr/bin/sw/src/Application/ExtensionManager.php on line 63

The class in ~/.config/sw-cli-tools/extensions/MAXCLUSTER/Shopware/Bootstrap.php looks like this:

<?php
namespace MAXCLUSTER\Shopware;

...


class Bootstrap implements ConsoleAwareExtension
{
...
    public function setContainer(ContainerBuilder $container)
    {
        $this->populateContainer($container);
    }

    public function getConsoleCommands()
    {
...
    }

    private function populateContainer(ContainerBuilder $container)
    {
    }



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions