fsi-open / datasource-bundle

Main purpose of this bundle is to register FSi DataSource Component service and twig datasource rendering functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pawloaka opened this issue · comments

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?