Skip to content

Commit

Permalink
Merge branch 'hotfix/move-factories-to-infra' of https://github.com/d…
Browse files Browse the repository at this point in the history
…anizord/php-ddd-cargo-sample into danizord-hotfix/move-factories-to-infra

Conflicts:
	config/autoload/dependencies.global.php
  • Loading branch information
codeliner committed Mar 14, 2016
2 parents d27e942 + d6f86e8 commit 26079de
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Date: 06.12.2015 - 11:13 PM
*/
namespace Codeliner\CargoBackend\Container\Application\Action;
namespace Codeliner\CargoBackend\Infrastructure\Container\Application\Action;

use Assert\Assertion;
use Codeliner\CargoBackend\Application\Booking\BookingService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Application\Action;
namespace Codeliner\CargoBackend\Infrastructure\Container\Application\Action;

use Psr7Middlewares\Middleware;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Application\Booking;
namespace Codeliner\CargoBackend\Infrastructure\Container\Application\Booking;

use Codeliner\CargoBackend\Application\Booking\BookingService;
use Codeliner\CargoBackend\Infrastructure\Persistence\Transaction\TransactionManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Infrastructure;
namespace Codeliner\CargoBackend\Infrastructure\Container\Infrastructure;

use Codeliner\CargoBackend\Infrastructure\Persistence\Doctrine\DoctrineCargoRepository;
use Codeliner\CargoBackend\Model\Cargo\Cargo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Infrastructure;
namespace Codeliner\CargoBackend\Infrastructure\Container\Infrastructure;

use Codeliner\CargoBackend\Infrastructure\Persistence\Doctrine\Type\LegsDoctrineType;
use Codeliner\CargoBackend\Infrastructure\Persistence\Doctrine\Type\TrackingIdDoctrineType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Infrastructure;
namespace Codeliner\CargoBackend\Infrastructure\Container\Infrastructure;

use Codeliner\CargoBackend\Infrastructure\Routing\ExternalRoutingService;
use Codeliner\GraphTraversalBackend\GraphTraversalServiceInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
declare(strict_types = 1);

namespace Codeliner\CargoBackend\Container\Infrastructure;
namespace Codeliner\CargoBackend\Infrastructure\Container\Infrastructure;

use Codeliner\CargoBackend\Infrastructure\Persistence\Transaction\TransactionManager;
use Interop\Container\ContainerInterface;
Expand Down
24 changes: 12 additions & 12 deletions config/autoload/dependencies.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
'Codeliner\CargoBackend' => \Zend\Expressive\Container\ApplicationFactory::class,

//Actions
\Codeliner\CargoBackend\Http\Action\GetLocations::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetRouteCandidates::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\CreateCargo::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetCargos::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetCargo::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\UpdateCargo::class => \Codeliner\CargoBackend\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetLocations::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetRouteCandidates::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\CreateCargo::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetCargos::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\GetCargo::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,
\Codeliner\CargoBackend\Http\Action\UpdateCargo::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\BookingActionFactory::class,

//Action Helper middleware
\Psr7Middlewares\Middleware\Payload::class => \Codeliner\CargoBackend\Container\Application\Action\PayloadParserFactory::class,
\Psr7Middlewares\Middleware\Payload::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Action\PayloadParserFactory::class,

//Application
\Codeliner\CargoBackend\Application\Booking\BookingService::class => \Codeliner\CargoBackend\Container\Application\Booking\BookingServiceFactory::class,
\Codeliner\CargoBackend\Application\Booking\BookingService::class => \Codeliner\CargoBackend\Infrastructure\Container\Application\Booking\BookingServiceFactory::class,

//Model
\Codeliner\CargoBackend\Model\Cargo\CargoRepositoryInterface::class => \Codeliner\CargoBackend\Container\Infrastructure\DoctrineCargoRepositoryFactory::class,
\Codeliner\CargoBackend\Model\Routing\RoutingServiceInterface::class => \Codeliner\CargoBackend\Container\Infrastructure\ExternalRoutingServiceFactory::class,
\Codeliner\CargoBackend\Model\Cargo\CargoRepositoryInterface::class => \Codeliner\CargoBackend\Infrastructure\Container\Infrastructure\DoctrineCargoRepositoryFactory::class,
\Codeliner\CargoBackend\Model\Routing\RoutingServiceInterface::class => \Codeliner\CargoBackend\Infrastructure\Container\Infrastructure\ExternalRoutingServiceFactory::class,

//Infrastructure
'doctrine.entitymanager.orm_default' => \Codeliner\CargoBackend\Container\Infrastructure\DoctrineEntityManagerFactory::class,
'doctrine.entitymanager.orm_default' => \Codeliner\CargoBackend\Infrastructure\Container\Infrastructure\DoctrineEntityManagerFactory::class,
\Doctrine\ORM\Mapping\UnderscoreNamingStrategy::class => \Zend\ServiceManager\Factory\InvokableFactory::class,
\Codeliner\CargoBackend\Infrastructure\Persistence\Transaction\TransactionManager::class => \Codeliner\CargoBackend\Container\Infrastructure\TransactionManagerFactory::class,
\Codeliner\CargoBackend\Infrastructure\Persistence\Transaction\TransactionManager::class => \Codeliner\CargoBackend\Infrastructure\Container\Infrastructure\TransactionManagerFactory::class,

//GraphTraversalBackend
\Codeliner\GraphTraversalBackend\GraphTraversalServiceInterface::class => \Codeliner\GraphTraversalBackend\GraphTraversalServiceFactory::class,
Expand Down

0 comments on commit 26079de

Please sign in to comment.