13,721 questions
PHP Graph breaks symfony console
Anonymous
Hi,
As soon as I do the...
composer require microsoft/microsoft-graph
...the symfony console is broken:
> [root@domain user]# bin/console -vvv
> Symfony 4.2.12 (env: dev, debug: true)
>
> Usage:
> command [options] [arguments]
>
> Options:
> -h, --help Display this help message
> -q, --quiet Do not output any message
> -V, --version Display this application version
> --ansi Force ANSI output
> --no-ansi Disable ANSI output
> -n, --no-interaction Do not ask any interactive question
> -e, --env=ENV The Environment name. [default: "dev"]
> --no-debug Switches off debug mode.
> -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
>
> 13:49:28 INFO [php] User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
> [
> "exception" => ErrorException {
> #message: "User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0."
> #code: 0
> #file: "/opt/vhosts/subdomain.folder/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php"
> #line: 66
> #severity: E_USER_DEPRECATED
> trace: {
> /opt/vhosts/subdomain.folder/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php:66 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getDoctrine_Orm_DefaultEntityManagerService.php:61 {
> › $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
> › $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
> › $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
> }
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/srcApp_KernelDevDebugContainer.php:603 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getDoctrine_Orm_DefaultEntityManagerService.php:36 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/EntityManager_9a5be93.php:32 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/EntityManager_9a5be93.php:32 { …}
> /opt/vhosts/subdomain.folder/vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:183 { …}
> /opt/vhosts/subdomain.folder/vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:246 { …}
> /opt/vhosts/subdomain.folder/vendor/doctrine/persistence/lib/Doctrine/Persistence/AbstractManagerRegistry.php:216 { …}
> /opt/vhosts/subdomain.folder/src/Repository/Service/MainRepositoryService.php:38 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getUserRepositoryServiceService.php:13 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/srcApp_KernelDevDebugContainer.php:603 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getRepositoryManagerServiceService.php:11 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/srcApp_KernelDevDebugContainer.php:603 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getAroldUpdaterCommandService.php:12 { …}
> /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/srcApp_KernelDevDebugContainer.php:603 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/dependency-injection/Container.php:433 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/dependency-injection/Argument/ServiceLocator.php:38 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php:46 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:533 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:706 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:135 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/ApplicationDescription.php:98 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/ApplicationDescription.php:71 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/TextDescriptor.php:202 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/Descriptor.php:55 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Helper/DescriptorHelper.php:69 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/ListCommand.php:75 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/Command.php:255 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:935 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:92 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:269 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:75 { …}
> /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:145 { …}
> /opt/vhosts/subdomain.folder/bin/console:38 { …}
> }
> }
> ]
> 13:49:28 DEBUG [snappy] Set option "margin-bottom".
> [
> "value" => 5
> ]
> 13:49:28 DEBUG [snappy] Set option "margin-left".
> [
> "value" => 5
> ]
> 13:49:28 DEBUG [snappy] Set option "margin-right".
> [
> "value" => 5
> ]
> 13:49:28 DEBUG [snappy] Set option "margin-top".
> [
> "value" => 5
> ]
> 13:49:28 DEBUG [snappy] Set option "orientation".
> [
> "value" => "portrait"
> ]
> 13:49:28 DEBUG [snappy] Set option "page-size".
> [
> "value" => "A4"
> ]
>
> In InputDefinition.php line 232:
>
> [Symfony\Component\Console\Exception\LogicException]
> An option named "connection" already exists.
>
>
> Exception trace:
> () at /opt/vhosts/subdomain.folder/vendor/symfony/console/Input/InputDefinition.php:232
> Symfony\Component\Console\Input\InputDefinition->addOption() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/Command.php:394
> Symfony\Component\Console\Command\Command->addOption() at /opt/vhosts/subdomain.folder/vendor/doctrine/doctrine-bundle/Command/Proxy/RunSqlDoctrineCommand.php:24
> Doctrine\Bundle\DoctrineBundle\Command\Proxy\RunSqlDoctrineCommand->configure() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/Command.php:77
> Symfony\Component\Console\Command\Command->__construct() at /opt/vhosts/subdomain.folder/vendor/doctrine/dbal/lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php:34
> Doctrine\DBAL\Tools\Console\Command\RunSqlCommand->__construct() at /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/getDoctrine_QuerySqlCommandService.php:13
> require() at /opt/vhosts/subdomain.folder/var/cache/dev/ContainerU44afU3/srcApp_KernelDevDebugContainer.php:603
> ContainerU44afU3\srcApp_KernelDevDebugContainer->load() at /opt/vhosts/subdomain.folder/vendor/symfony/dependency-injection/Container.php:433
> Symfony\Component\DependencyInjection\Container->getService() at /opt/vhosts/subdomain.folder/vendor/symfony/dependency-injection/Argument/ServiceLocator.php:38
> Symfony\Component\DependencyInjection\Argument\ServiceLocator->get() at /opt/vhosts/subdomain.folder/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php:46
> Symfony\Component\Console\CommandLoader\ContainerCommandLoader->get() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:533
> Symfony\Component\Console\Application->has() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:706
> Symfony\Component\Console\Application->all() at /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:135
> Symfony\Bundle\FrameworkBundle\Console\Application->all() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/ApplicationDescription.php:98
> Symfony\Component\Console\Descriptor\ApplicationDescription->inspectApplication() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/ApplicationDescription.php:71
> Symfony\Component\Console\Descriptor\ApplicationDescription->getCommands() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/TextDescriptor.php:202
> Symfony\Component\Console\Descriptor\TextDescriptor->describeApplication() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Descriptor/Descriptor.php:55
> Symfony\Component\Console\Descriptor\Descriptor->describe() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Helper/DescriptorHelper.php:69
> Symfony\Component\Console\Helper\DescriptorHelper->describe() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/ListCommand.php:75
> Symfony\Component\Console\Command\ListCommand->execute() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Command/Command.php:255
> Symfony\Component\Console\Command\Command->run() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:935
> Symfony\Component\Console\Application->doRunCommand() at /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:92
> Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:269
> Symfony\Component\Console\Application->doRun() at /opt/vhosts/subdomain.folder/vendor/symfony/framework-bundle/Console/Application.php:75
> Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /opt/vhosts/subdomain.folder/vendor/symfony/console/Application.php:145
> Symfony\Component\Console\Application->run() at /opt/vhosts/subdomain.folder/bin/console:38
>
> list [--raw] [--format FORMAT] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] [<command> [<namespace>]]
Please, do you have any idea?
Thank you!
Microsoft Security Microsoft Graph
Sign in to answer