Skip to content

[ERROR]: Argument 1 passed to Symfony\Component\DependencyInjection\ContainerBuilder::getDefinition() must be of the type string, object given #82

Description

@pawloaka

After installing your bundle I am getting the following error:

Argument 1 passed to Symfony\Component\DependencyInjection\ContainerBuilder::getDefinition() must be of the type string, object given

When I modify vendor/fsi/datasource-bundle/DependencyInjection/Compiler/DataSourcePass.php(which is not correct I know :)) to:

...
        foreach ($extensions as $driverExtension) {
            $driverExtension = (string)$driverExtension;
...

The error is gone.
What I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions