Skip to content

Commit d09cf84

Browse files
committed
doctrine schema
1 parent 80beadc commit d09cf84

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

pkg/enqueue-bundle/EnqueueBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Enqueue\AsyncEventDispatcher\DependencyInjection\AsyncEventDispatcherExtension;
66
use Enqueue\AsyncEventDispatcher\DependencyInjection\AsyncEventsPass;
77
use Enqueue\AsyncEventDispatcher\DependencyInjection\AsyncTransformersPass;
8-
use Enqueue\Bundle\DoctrineSchema\DoctrineSchemaCompilerPass;
8+
use Enqueue\Doctrine\DoctrineSchemaCompilerPass;
99
use Enqueue\Symfony\Client\DependencyInjection\AnalyzeRouteCollectionPass;
1010
use Enqueue\Symfony\Client\DependencyInjection\BuildClientExtensionsPass;
1111
use Enqueue\Symfony\Client\DependencyInjection\BuildCommandSubscriberRoutesPass as BuildClientCommandSubscriberRoutesPass;

pkg/enqueue-bundle/DoctrineSchema/DoctrineConnectionFactoryFactory.php renamed to pkg/enqueue/Doctrine/DoctrineConnectionFactoryFactory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Enqueue\Bundle\DoctrineSchema;
3+
namespace Enqueue\Doctrine;
44

55
use Enqueue\ConnectionFactoryFactoryInterface;
66
use Enqueue\Dbal\ManagerRegistryConnectionFactory;
@@ -18,12 +18,12 @@ class DoctrineConnectionFactoryFactory implements ConnectionFactoryFactoryInterf
1818
/**
1919
* @var ConnectionFactoryFactoryInterface
2020
*/
21-
private $parentFactory;
21+
private $fallbackFactory;
2222

23-
public function __construct(RegistryInterface $doctrine, ConnectionFactoryFactoryInterface $parentFactory)
23+
public function __construct(RegistryInterface $doctrine, ConnectionFactoryFactoryInterface $fallbackFactory)
2424
{
2525
$this->doctrine = $doctrine;
26-
$this->parentFactory = $parentFactory;
26+
$this->fallbackFactory = $fallbackFactory;
2727
}
2828

2929
public function create($config): ConnectionFactory
@@ -49,6 +49,6 @@ public function create($config): ConnectionFactory
4949
return new ManagerRegistryConnectionFactory($this->doctrine, $config);
5050
}
5151

52-
return $this->parentFactory->create($config);
52+
return $this->fallbackFactory->create($config);
5353
}
5454
}

pkg/enqueue-bundle/DoctrineSchema/DoctrineDriverFactory.php renamed to pkg/enqueue/Doctrine/DoctrineDriverFactory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Enqueue\Bundle\DoctrineSchema;
3+
namespace Enqueue\Doctrine;
44

55
use Enqueue\Client\Config;
66
use Enqueue\Client\Driver\DbalDriver;
@@ -15,11 +15,11 @@ class DoctrineDriverFactory implements DriverFactoryInterface
1515
/**
1616
* @var DriverFactoryInterface
1717
*/
18-
private $parentFactory;
18+
private $fallbackFactory;
1919

20-
public function __construct(DriverFactoryInterface $parentFactory)
20+
public function __construct(DriverFactoryInterface $fallbackFactory)
2121
{
22-
$this->parentFactory = $parentFactory;
22+
$this->fallbackFactory = $fallbackFactory;
2323
}
2424

2525
public function create(ConnectionFactory $factory, Config $config, RouteCollection $collection): DriverInterface
@@ -36,6 +36,6 @@ public function create(ConnectionFactory $factory, Config $config, RouteCollecti
3636
return new DbalDriver($factory->createContext(), $config, $collection);
3737
}
3838

39-
return $this->parentFactory->create($factory, $config, $collection);
39+
return $this->fallbackFactory->create($factory, $config, $collection);
4040
}
4141
}

pkg/enqueue-bundle/DoctrineSchema/DoctrineSchemaCompilerPass.php renamed to pkg/enqueue/Doctrine/DoctrineSchemaCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Enqueue\Bundle\DoctrineSchema;
3+
namespace Enqueue\Doctrine;
44

55
use Enqueue\Symfony\Client\DependencyInjection\ClientFactory;
66
use Enqueue\Symfony\DependencyInjection\TransportFactory;

0 commit comments

Comments
 (0)