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

Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct() #13

Open
grekpg opened this issue Mar 27, 2023 · 0 comments

Comments

@grekpg
Copy link

grekpg commented Mar 27, 2023

I get this error

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  ArgumentCountError {#1253
!!    #message: "Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in /srv/app/vendor/codecloud/symfony-shopify-bundle/src/DependencyInjection/Configuration.php on line 16 and at least 1 expected"
!!    #code: 0
!!    #file: "./vendor/symfony/config/Definition/Builder/TreeBuilder.php"
!!    #line: 26
!!    trace: {
!!      ./vendor/symfony/config/Definition/Builder/TreeBuilder.php:26 { …}
!!      ./vendor/codecloud/symfony-shopify-bundle/src/DependencyInjection/Configuration.php:16 { …}
!!      ./vendor/symfony/config/Definition/Processor.php:46 { …}
!!      ./vendor/symfony/dependency-injection/Compiler/ValidateEnvPlaceholdersPass.php:83 { …}
!!      ./vendor/symfony/dependency-injection/Compiler/Compiler.php:73 { …}
!!      ./vendor/symfony/dependency-injection/ContainerBuilder.php:721 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:487 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:709 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:122 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:148 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:69 { …}
!!      ./vendor/symfony/console/Application.php:168 { …}
!!      ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:54 { …}
!!      ./vendor/autoload_runtime.php:29 { …}
!!      ./bin/console:11 {
!!        › 
!!        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
!!        › 
!!        arguments: {
!!          "/srv/app/vendor/autoload_runtime.php"
!!        }
!!      }
!!    }
!!  }
!!  2023-03-27T11:20:31+00:00 [critical] Uncaught Error: Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in /srv/app/vendor/codecloud/symfony-shopify-bundle/src/DependencyInjection/Configuration.php on line 16 and at least 1 expected

my config

code_cloud_shopify:
store_manager_id: App\Service\Shopify\ShopifyStoreManager
oauth:
api_key: fff
shared_secret: fff
scope: "read_customers,write_customers"
redirect_route: "shopify_plugin_index"
webhooks:
- orders/create
- customers/update

ok i fix it edit Configuration

```

public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('codecloud_shopify');

    $rootNode = $treeBuilder->getRootNode();

now have erros : 


Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In ArrayNodeDefinition.php line 436:
!!
!! ->cannotBeEmpty() is not applicable to concrete nodes at path "codecloud_sh
!! opify.credentials".



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