Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeBuilded constructor with no parameters broke up composer #82

Open
logosur opened this issue Nov 25, 2020 · 1 comment
Open

TreeBuilded constructor with no parameters broke up composer #82

logosur opened this issue Nov 25, 2020 · 1 comment

Comments

@logosur
Copy link

logosur commented Nov 25, 2020

Hello,

In Symfony 5, let's do this:

composer require youshido/graphql-bundle
composer remove youshido/graphql-bundle
composer require youshido/graphql-bundle

And you get this error:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! ArgumentCountError {#4094
!! #message: "Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in C:...\vendor\youshido\graphql-bundle\DependencyInjection\Configuration.php on line 21 and at least 1 expected"
!! #code: 0
!! #file: "C:...\vendor\symfony\config\Definition\Builder\TreeBuilder.php"
!! #line: 26
!! trace: {

Code:
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('graphql');

    $rootNode
        ->children()

......

@logosur
Copy link
Author

logosur commented Nov 25, 2020

It seems that it will be fixed with one of the pull requests, updating to have compability with symfony 5. Nobody taking this pull request?

@logosur logosur closed this as completed Nov 25, 2020
@logosur logosur reopened this Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant