├── .env.example ├── .gitignore ├── LICENSE ├── README.md ├── api └── api.php ├── cli-config.php ├── codeception.example.yml ├── composer.json ├── composer.lock ├── database ├── bootstrap.php └── migrations │ └── Version20180803131054.php ├── migrations ├── migrations-db.php ├── migrations.php ├── src ├── app │ ├── Services │ │ ├── Error.php │ │ └── Restaurant.php │ └── config │ │ ├── config.php │ │ ├── container.php │ │ └── restRoutes.php ├── contexts │ └── RestaurantManagement │ │ ├── RestaurantManagementContract.php │ │ ├── RestaurantModule │ │ ├── Factories │ │ │ └── RestaurantAttributeValueFactory.php │ │ ├── Models │ │ │ ├── Restaurant.php │ │ │ └── RestaurantAttributeValue.php │ │ ├── Repositories │ │ │ ├── RestaurantAttributeValueDbRepository.php │ │ │ └── RestaurantDbRepository.php │ │ ├── Services │ │ │ └── RestaurantService.php │ │ └── config │ │ │ ├── config.php │ │ │ └── container.php │ │ ├── Services │ │ └── RestaurantManagementService.php │ │ └── config │ │ ├── config.php │ │ └── container.php └── infrastructure │ ├── Annotations │ └── Validation.php │ ├── Application.php │ ├── Events │ ├── RequestEvent.php │ └── ResponseEvent.php │ ├── Exceptions │ ├── HttpResourceNotFoundException.php │ ├── InfrastructureException.php │ ├── InternalException.php │ └── ValidationException.php │ ├── Listeners │ └── RequestListener.php │ ├── Models │ ├── BaseJsonResponse.php │ ├── Config.php │ ├── CreateEntityJsonResponse.php │ ├── DeleteEntityJsonResponse.php │ ├── GetEntityJsonResponse.php │ ├── LoadCollectionJsonResponse.php │ ├── RichRequest.php │ ├── Routing │ │ ├── RouteBuilder.php │ │ └── RouteCollectionBuilder.php │ ├── SearchCriteria │ │ ├── Condition.php │ │ ├── EqualCriteria.php │ │ ├── InArrayCriteria.php │ │ ├── OrderBy.php │ │ ├── SearchCriteria.php │ │ ├── SearchCriteriaConstructor.php │ │ └── SearchCriteriaQueryString.php │ ├── UpdateEntityJsonResponse.php │ ├── ValidationError.php │ ├── ValidationRule.php │ ├── ValidationRulesReader.php │ ├── ValidationRulesTranslator.php │ └── Validator.php │ ├── Repository │ ├── BaseRepository.php │ └── DbRepository.php │ ├── Services │ ├── AssociationsSerializer.php │ ├── BaseService.php │ └── EntityFactory.php │ └── config │ ├── appContainer.php │ ├── config.example.php │ ├── config.php │ └── container.php └── tests ├── _data └── .gitkeep ├── _output └── .gitkeep ├── _support ├── AcceptanceTester.php ├── ApiTester.php ├── FunctionalTester.php ├── Helper │ ├── Acceptance.php │ ├── Functional.php │ ├── RandomGeneratorHelper.php │ └── Unit.php └── UnitTester.php ├── api.suite.example.yml ├── api └── Restaurant │ ├── CreateCept.php │ ├── DeleteCept.php │ ├── GetCept.php │ ├── LoadCept.php │ ├── LoadWithCriteriaCept.php │ ├── LoadWithParametersCept.php │ └── UpdateCept.php ├── functional.suite.example.yml ├── unit.suite.example.yml └── unit └── infrastructure ├── SearchCriteriaConstructorTest.php └── SearchCriteriaQueryStringTest.php /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/README.md -------------------------------------------------------------------------------- /api/api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/api/api.php -------------------------------------------------------------------------------- /cli-config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/cli-config.php -------------------------------------------------------------------------------- /codeception.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/codeception.example.yml -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/composer.lock -------------------------------------------------------------------------------- /database/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/database/bootstrap.php -------------------------------------------------------------------------------- /database/migrations/Version20180803131054.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/database/migrations/Version20180803131054.php -------------------------------------------------------------------------------- /migrations: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/migrations -------------------------------------------------------------------------------- /migrations-db.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/migrations-db.php -------------------------------------------------------------------------------- /migrations.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/migrations.php -------------------------------------------------------------------------------- /src/app/Services/Error.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/src/app/Services/Error.php -------------------------------------------------------------------------------- /src/app/Services/Restaurant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Antonyan/ddd-skeleton/HEAD/src/app/Services/Restaurant.php -------------------------------------------------------------------------------- /src/app/config/config.php: -------------------------------------------------------------------------------- 1 |