<?php
use PHPBr\Order\OrderRepository;
use PHPBr\Order\OrderService;
use PHPBr\Order\Service\SimpleOrderPolicy;
use PHPBr\Order\Service\Storage\StaticStorage;
$orderRepository = new OrderRepository(new StaticStorage(),
new SimpleOrderPolicy());
$orderService = new OrderService($orderRepository);
$order = $orderService->findOrder(1);
$orderService->approveOrder(1);
-
Notifications
You must be signed in to change notification settings - Fork 0
php-brasil/Order
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Domain driven order service design
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published