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
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)
{
}
The text was updated successfully, but these errors were encountered:
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
The class in ~/.config/sw-cli-tools/extensions/MAXCLUSTER/Shopware/Bootstrap.php looks like this:
The text was updated successfully, but these errors were encountered: