├── .gitignore ├── README.md ├── app ├── .htaccess ├── AppCache.php ├── AppKernel.php ├── Resources │ └── views │ │ ├── Article │ │ ├── CreateArticleAction.html.twig │ │ └── ListArticleAction.html.twig │ │ ├── base.html.twig │ │ └── flashMessage.html.twig └── config │ ├── config.yml │ ├── config_dev.yml │ ├── config_prod.yml │ ├── config_test.yml │ ├── doctrine │ └── entity │ │ └── Article.Article.orm.yml │ ├── parameters.yml.dist │ ├── routing.yml │ ├── routing_dev.yml │ ├── security.yml │ └── services.yml ├── assets ├── css │ └── global.scss └── js │ └── main.js ├── bin ├── console └── symfony_requirements ├── composer.json ├── composer.lock ├── package.json ├── phpunit.xml.dist ├── src ├── .htaccess ├── Application │ ├── ApplicationException.php │ ├── Command │ │ └── CreateArticleCommand.php │ ├── CommandHandler │ │ └── CreateArticleCommandHandler.php │ └── Query │ │ ├── ListArticleQuery.php │ │ └── Query.php ├── Domain │ ├── DomainException.php │ └── Model │ │ └── Article │ │ ├── Article.php │ │ ├── ArticleEvent.php │ │ ├── ArticleException.php │ │ └── ArticleRepositoryInterface.php └── Infrastructure │ ├── Action │ ├── Action.php │ └── Article │ │ ├── CreateArticleAction.php │ │ └── ListArticleAction.php │ ├── Form │ └── Type │ │ └── CreateArticleFormType.php │ └── Repository │ ├── Doctrine │ └── ArticleRepository.php │ └── InMemory │ └── ArticleRepository.php ├── var ├── SymfonyRequirements.php ├── cache │ └── .gitkeep ├── logs │ └── .gitkeep └── sessions │ └── .gitkeep ├── web ├── .htaccess ├── app.php ├── app_dev.php ├── apple-touch-icon.png ├── config.php ├── favicon.ico └── robots.txt ├── webpack.config.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Hexagonal Architecture - PHP Symfony Demo App 2 | === 3 | -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/.htaccess -------------------------------------------------------------------------------- /app/AppCache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/AppCache.php -------------------------------------------------------------------------------- /app/AppKernel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/AppKernel.php -------------------------------------------------------------------------------- /app/Resources/views/Article/CreateArticleAction.html.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/Resources/views/Article/CreateArticleAction.html.twig -------------------------------------------------------------------------------- /app/Resources/views/Article/ListArticleAction.html.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/Resources/views/Article/ListArticleAction.html.twig -------------------------------------------------------------------------------- /app/Resources/views/base.html.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/Resources/views/base.html.twig -------------------------------------------------------------------------------- /app/Resources/views/flashMessage.html.twig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/Resources/views/flashMessage.html.twig -------------------------------------------------------------------------------- /app/config/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/config.yml -------------------------------------------------------------------------------- /app/config/config_dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/config_dev.yml -------------------------------------------------------------------------------- /app/config/config_prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/config_prod.yml -------------------------------------------------------------------------------- /app/config/config_test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/config_test.yml -------------------------------------------------------------------------------- /app/config/doctrine/entity/Article.Article.orm.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/doctrine/entity/Article.Article.orm.yml -------------------------------------------------------------------------------- /app/config/parameters.yml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/parameters.yml.dist -------------------------------------------------------------------------------- /app/config/routing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/routing.yml -------------------------------------------------------------------------------- /app/config/routing_dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/routing_dev.yml -------------------------------------------------------------------------------- /app/config/security.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/security.yml -------------------------------------------------------------------------------- /app/config/services.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/app/config/services.yml -------------------------------------------------------------------------------- /assets/css/global.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/assets/css/global.scss -------------------------------------------------------------------------------- /assets/js/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/assets/js/main.js -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/bin/console -------------------------------------------------------------------------------- /bin/symfony_requirements: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/bin/symfony_requirements -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/composer.lock -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/package.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/.htaccess -------------------------------------------------------------------------------- /src/Application/ApplicationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Application/ApplicationException.php -------------------------------------------------------------------------------- /src/Application/Command/CreateArticleCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Application/Command/CreateArticleCommand.php -------------------------------------------------------------------------------- /src/Application/CommandHandler/CreateArticleCommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Application/CommandHandler/CreateArticleCommandHandler.php -------------------------------------------------------------------------------- /src/Application/Query/ListArticleQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Application/Query/ListArticleQuery.php -------------------------------------------------------------------------------- /src/Application/Query/Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Application/Query/Query.php -------------------------------------------------------------------------------- /src/Domain/DomainException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Domain/DomainException.php -------------------------------------------------------------------------------- /src/Domain/Model/Article/Article.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Domain/Model/Article/Article.php -------------------------------------------------------------------------------- /src/Domain/Model/Article/ArticleEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Domain/Model/Article/ArticleEvent.php -------------------------------------------------------------------------------- /src/Domain/Model/Article/ArticleException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Domain/Model/Article/ArticleException.php -------------------------------------------------------------------------------- /src/Domain/Model/Article/ArticleRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Domain/Model/Article/ArticleRepositoryInterface.php -------------------------------------------------------------------------------- /src/Infrastructure/Action/Action.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Action/Action.php -------------------------------------------------------------------------------- /src/Infrastructure/Action/Article/CreateArticleAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Action/Article/CreateArticleAction.php -------------------------------------------------------------------------------- /src/Infrastructure/Action/Article/ListArticleAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Action/Article/ListArticleAction.php -------------------------------------------------------------------------------- /src/Infrastructure/Form/Type/CreateArticleFormType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Form/Type/CreateArticleFormType.php -------------------------------------------------------------------------------- /src/Infrastructure/Repository/Doctrine/ArticleRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Repository/Doctrine/ArticleRepository.php -------------------------------------------------------------------------------- /src/Infrastructure/Repository/InMemory/ArticleRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/src/Infrastructure/Repository/InMemory/ArticleRepository.php -------------------------------------------------------------------------------- /var/SymfonyRequirements.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/var/SymfonyRequirements.php -------------------------------------------------------------------------------- /var/cache/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /var/logs/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /var/sessions/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/.htaccess -------------------------------------------------------------------------------- /web/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/app.php -------------------------------------------------------------------------------- /web/app_dev.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/app_dev.php -------------------------------------------------------------------------------- /web/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/apple-touch-icon.png -------------------------------------------------------------------------------- /web/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/config.php -------------------------------------------------------------------------------- /web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/favicon.ico -------------------------------------------------------------------------------- /web/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/web/robots.txt -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdxpl/hexagonal-architecture-symfony/HEAD/yarn.lock --------------------------------------------------------------------------------