[DoctrineBundle] fixed service visibility
This commit is contained in:
parent
71330e91d0
commit
32070f5f68
@ -102,6 +102,7 @@ abstract class DoctrineCommand extends Command
|
|||||||
{
|
{
|
||||||
$connectionName = $name ?: $this->container->getParameter('doctrine.dbal.default_connection');
|
$connectionName = $name ?: $this->container->getParameter('doctrine.dbal.default_connection');
|
||||||
$connectionName = sprintf('doctrine.dbal.%s_connection', $connectionName);
|
$connectionName = sprintf('doctrine.dbal.%s_connection', $connectionName);
|
||||||
|
|
||||||
if (!$this->container->has($connectionName)) {
|
if (!$this->container->has($connectionName)) {
|
||||||
throw new \InvalidArgumentException(sprintf('<error>Could not find a connection named <comment>%s</comment></error>', $name));
|
throw new \InvalidArgumentException(sprintf('<error>Could not find a connection named <comment>%s</comment></error>', $name));
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,10 @@
|
|||||||
<argument /> <!-- Types -->
|
<argument /> <!-- Types -->
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="doctrine.dbal.connection" class="%doctrine.dbal.connection.class%" factory-service="doctrine.dbal.connection_factory" factory-method="createConnection" public="false" abstract="true" />
|
<service id="doctrine.dbal.connection" class="%doctrine.dbal.connection.class%" factory-service="doctrine.dbal.connection_factory" factory-method="createConnection" abstract="true" />
|
||||||
|
|
||||||
<service id="doctrine.dbal.connection.event_manager" class="%doctrine.dbal.connection.event_manager.class%" public="false" abstract="true" />
|
<service id="doctrine.dbal.connection.event_manager" class="%doctrine.dbal.connection.event_manager.class%" abstract="true" />
|
||||||
|
|
||||||
<service id="doctrine.dbal.connection.configuration" class="%doctrine.dbal.configuration.class%" public="false" abstract="true" />
|
<service id="doctrine.dbal.connection.configuration" class="%doctrine.dbal.configuration.class%" abstract="true" />
|
||||||
</services>
|
</services>
|
||||||
</container>
|
</container>
|
||||||
|
@ -59,6 +59,6 @@
|
|||||||
<argument type="service" id="doctrine.orm.entity_manager" />
|
<argument type="service" id="doctrine.orm.entity_manager" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="doctrine.orm.configuration" class="%doctrine.orm.configuration.class%" public="false" abstract="true" />
|
<service id="doctrine.orm.configuration" class="%doctrine.orm.configuration.class%" abstract="true" />
|
||||||
</services>
|
</services>
|
||||||
</container>
|
</container>
|
||||||
|
Reference in New Issue
Block a user