Skip to content

3.0.0-alpha6: Add command to services.yaml file (#131)

Pre-release
Pre-release
Compare
Choose a tag to compare
@keywan-ghadami-oxid keywan-ghadami-oxid released this 07 May 14:42
· 6 commits to master since this release
c6fbf2e
The symfony console first tries to load the command name [from the
service-definition][1], if this fails it loads the command name via the
[getDefaultName() method][2], which does not work sometimes. We saw this
error lately in our logs:

```
[file /var/www/html/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php]
[message Uncaught Error: Call to undefined method OxidCommunity\ModuleInternals\Command\ModuleFixCommand::getDefaultName()
in /var/www/html/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php:61
[...]
```

[1]: https://github.com/symfony/console/blob/v3.4.15/DependencyInjection/AddConsoleCommandPass.php#L47-L53
[2]: https://github.com/symfony/console/blob/v3.4.15/DependencyInjection/AddConsoleCommandPass.php#L61