├── frameworks
├── cake
│ ├── plugins
│ │ └── .gitkeep
│ ├── resources
│ │ └── .gitkeep
│ ├── src
│ │ ├── View
│ │ │ ├── Cell
│ │ │ │ └── .gitkeep
│ │ │ ├── Helper
│ │ │ │ └── .gitkeep
│ │ │ ├── AppView.php
│ │ │ └── AjaxView.php
│ │ ├── Model
│ │ │ ├── Behavior
│ │ │ │ └── .gitkeep
│ │ │ ├── Entity
│ │ │ │ └── .gitkeep
│ │ │ └── Table
│ │ │ │ └── .gitkeep
│ │ └── Controller
│ │ │ ├── Component
│ │ │ └── .gitkeep
│ │ │ ├── AppController.php
│ │ │ └── ErrorController.php
│ ├── tests
│ │ ├── Fixture
│ │ │ └── .gitkeep
│ │ ├── TestCase
│ │ │ ├── View
│ │ │ │ └── Helper
│ │ │ │ │ └── .gitkeep
│ │ │ ├── Model
│ │ │ │ └── Behavior
│ │ │ │ │ └── .gitkeep
│ │ │ └── Controller
│ │ │ │ └── Component
│ │ │ │ └── .gitkeep
│ │ └── bootstrap.php
│ ├── webroot
│ │ ├── js
│ │ │ └── .gitkeep
│ │ ├── favicon.ico
│ │ ├── img
│ │ │ ├── cake-logo.png
│ │ │ ├── cake.icon.png
│ │ │ └── cake.power.gif
│ │ ├── .htaccess
│ │ ├── font
│ │ │ ├── cakedingbats-webfont.eot
│ │ │ ├── cakedingbats-webfont.ttf
│ │ │ ├── cakedingbats-webfont.woff
│ │ │ └── cakedingbats-webfont.woff2
│ │ ├── index.php
│ │ └── css
│ │ │ ├── home.css
│ │ │ └── normalize.min.css
│ ├── templates
│ │ ├── cell
│ │ │ └── .gitkeep
│ │ ├── element
│ │ │ └── flash
│ │ │ │ ├── error.php
│ │ │ │ ├── success.php
│ │ │ │ └── default.php
│ │ ├── email
│ │ │ ├── text
│ │ │ │ └── default.php
│ │ │ └── html
│ │ │ │ └── default.php
│ │ ├── layout
│ │ │ ├── ajax.php
│ │ │ ├── email
│ │ │ │ ├── text
│ │ │ │ │ └── default.php
│ │ │ │ └── html
│ │ │ │ │ └── default.php
│ │ │ ├── error.php
│ │ │ └── default.php
│ │ └── Error
│ │ │ ├── error400.php
│ │ │ └── error500.php
│ ├── phpcs.xml
│ ├── phpstan.neon
│ ├── .htaccess
│ ├── bin
│ │ ├── cake.php
│ │ └── cake.bat
│ ├── .editorconfig
│ ├── index.php
│ ├── config
│ │ ├── schema
│ │ │ ├── i18n.sql
│ │ │ └── sessions.sql
│ │ ├── bootstrap_cli.php
│ │ ├── requirements.php
│ │ └── .env.example
│ ├── .gitignore
│ ├── .gitattributes
│ ├── .github
│ │ ├── workflows
│ │ │ ├── stale.yml
│ │ │ └── ci.yml
│ │ ├── PULL_REQUEST_TEMPLATE.md
│ │ └── ISSUE_TEMPLATE.md
│ ├── phpunit.xml.dist
│ ├── README.md
│ └── composer.json
├── laminas
│ ├── data
│ │ └── cache
│ │ │ └── .gitkeep
│ ├── config
│ │ ├── autoload
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── global.php
│ │ │ ├── local.php.dist
│ │ │ └── development.local.php.dist
│ │ ├── modules.config.php
│ │ └── development.config.php.dist
│ ├── COPYRIGHT.md
│ ├── .gitattributes
│ ├── docker-compose.yml
│ ├── public
│ │ ├── img
│ │ │ └── favicon.ico
│ │ ├── css
│ │ │ └── style.css
│ │ ├── .htaccess
│ │ ├── web.config
│ │ └── index.php
│ ├── .gitignore
│ ├── module
│ │ └── Application
│ │ │ ├── src
│ │ │ ├── Module.php
│ │ │ └── Controller
│ │ │ │ └── IndexController.php
│ │ │ ├── test
│ │ │ └── Controller
│ │ │ │ └── IndexControllerTest.php
│ │ │ ├── config
│ │ │ └── module.config.php
│ │ │ └── view
│ │ │ └── error
│ │ │ └── index.phtml
│ ├── phpunit.xml.dist
│ ├── phpcs.xml
│ ├── psalm.xml
│ ├── LICENSE.md
│ ├── Vagrantfile
│ ├── composer.json
│ └── Dockerfile
├── laravel
│ ├── public
│ │ ├── favicon.ico
│ │ ├── robots.txt
│ │ ├── .htaccess
│ │ ├── web.config
│ │ └── index.php
│ ├── resources
│ │ ├── css
│ │ │ └── app.css
│ │ ├── js
│ │ │ ├── app.js
│ │ │ └── bootstrap.js
│ │ └── lang
│ │ │ └── en
│ │ │ ├── pagination.php
│ │ │ ├── auth.php
│ │ │ └── passwords.php
│ ├── database
│ │ ├── .gitignore
│ │ ├── seeders
│ │ │ └── DatabaseSeeder.php
│ │ ├── migrations
│ │ │ ├── 2014_10_12_100000_create_password_resets_table.php
│ │ │ ├── 2014_10_12_000000_create_users_table.php
│ │ │ └── 2019_08_19_000000_create_failed_jobs_table.php
│ │ └── factories
│ │ │ └── UserFactory.php
│ ├── bootstrap
│ │ ├── cache
│ │ │ └── .gitignore
│ │ └── app.php
│ ├── storage
│ │ ├── logs
│ │ │ └── .gitignore
│ │ ├── app
│ │ │ ├── public
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ └── framework
│ │ │ ├── sessions
│ │ │ └── .gitignore
│ │ │ ├── testing
│ │ │ └── .gitignore
│ │ │ ├── views
│ │ │ └── .gitignore
│ │ │ ├── cache
│ │ │ ├── data
│ │ │ │ └── .gitignore
│ │ │ └── .gitignore
│ │ │ └── .gitignore
│ ├── .gitattributes
│ ├── tests
│ │ ├── TestCase.php
│ │ ├── Unit
│ │ │ └── ExampleTest.php
│ │ ├── Feature
│ │ │ └── ExampleTest.php
│ │ └── CreatesApplication.php
│ ├── .styleci.yml
│ ├── .gitignore
│ ├── .editorconfig
│ ├── app
│ │ ├── Http
│ │ │ ├── Middleware
│ │ │ │ ├── EncryptCookies.php
│ │ │ │ ├── VerifyCsrfToken.php
│ │ │ │ ├── TrustHosts.php
│ │ │ │ ├── PreventRequestsDuringMaintenance.php
│ │ │ │ ├── TrimStrings.php
│ │ │ │ ├── Authenticate.php
│ │ │ │ ├── TrustProxies.php
│ │ │ │ └── RedirectIfAuthenticated.php
│ │ │ └── Controllers
│ │ │ │ └── Controller.php
│ │ ├── Providers
│ │ │ ├── BroadcastServiceProvider.php
│ │ │ ├── AppServiceProvider.php
│ │ │ ├── AuthServiceProvider.php
│ │ │ ├── EventServiceProvider.php
│ │ │ └── RouteServiceProvider.php
│ │ ├── Exceptions
│ │ │ └── Handler.php
│ │ ├── Console
│ │ │ └── Kernel.php
│ │ └── Models
│ │ │ └── User.php
│ ├── package.json
│ ├── routes
│ │ ├── web.php
│ │ ├── channels.php
│ │ ├── api.php
│ │ └── console.php
│ ├── webpack.mix.js
│ ├── server.php
│ ├── config
│ │ ├── cors.php
│ │ ├── services.php
│ │ ├── view.php
│ │ ├── hashing.php
│ │ └── broadcasting.php
│ ├── .env.example
│ ├── phpunit.xml
│ ├── composer.json
│ └── artisan
├── symfony
│ ├── src
│ │ ├── Controller
│ │ │ └── .gitignore
│ │ └── Kernel.php
│ ├── config
│ │ ├── routes.yaml
│ │ ├── bundles.php
│ │ ├── routes
│ │ │ └── framework.yaml
│ │ ├── preload.php
│ │ ├── packages
│ │ │ ├── routing.yaml
│ │ │ ├── cache.yaml
│ │ │ └── framework.yaml
│ │ └── services.yaml
│ ├── .gitignore
│ ├── public
│ │ └── index.php
│ ├── bin
│ │ └── console
│ ├── .env
│ └── composer.json
└── spiral
│ ├── .gitignore
│ ├── public
│ ├── favicon.ico
│ ├── images
│ │ └── logo.svg
│ └── styles
│ │ └── welcome.css
│ ├── .env.sample
│ ├── app
│ ├── views
│ │ ├── embed
│ │ │ └── links.dark.php
│ │ ├── layout
│ │ │ └── base.dark.php
│ │ └── home.dark.php
│ ├── locale
│ │ └── ru
│ │ │ └── messages.en.php
│ ├── src
│ │ ├── Job
│ │ │ └── Ping.php
│ │ ├── Bootloader
│ │ │ ├── LocaleSelectorBootloader.php
│ │ │ ├── LoggingBootloader.php
│ │ │ └── RoutesBootloader.php
│ │ └── Controller
│ │ │ └── HomeController.php
│ └── config
│ │ └── database.php
│ ├── .editorconfig
│ ├── .styleci.yml
│ ├── tests
│ ├── Unit
│ │ └── DemoTest.php
│ ├── TestApp.php
│ ├── Feature
│ │ └── BasicTest.php
│ ├── Traits
│ │ └── InteractsWithConsole.php
│ └── TestCase.php
│ ├── .rr.yaml
│ ├── app.php
│ ├── LICENSE
│ ├── phpunit.xml
│ └── composer.json
├── src
└── event
│ ├── .gitignore
│ ├── tests
│ ├── bootstrap.php
│ ├── Domain
│ │ ├── Repository
│ │ │ └── InMemoryEventRepositoryTest.php
│ │ ├── Exception
│ │ │ ├── EventNotFoundExceptionTest.php
│ │ │ └── EventTranslationNotFoundExceptionTest.php
│ │ └── Model
│ │ │ └── EventTransaltionTest.php
│ ├── Application
│ │ ├── Message
│ │ │ ├── RemoveEventMessageTest.php
│ │ │ ├── CreateEventMessageTest.php
│ │ │ └── ModifyEventMessageTest.php
│ │ └── MessageHandler
│ │ │ ├── CreateEventMessageHandlerTest.php
│ │ │ └── RemoveEventMessageHandlerTest.php
│ └── TestTraits
│ │ └── PrivatePropertyTrait.php
│ ├── src
│ ├── Domain
│ │ ├── Model
│ │ │ ├── EventTranslationInterface.php
│ │ │ ├── EventTranslation.php
│ │ │ └── EventInterface.php
│ │ ├── Exception
│ │ │ ├── EventNotFoundException.php
│ │ │ └── EventTranslationNotFoundException.php
│ │ └── Repository
│ │ │ └── EventRepositoryInterface.php
│ ├── Application
│ │ ├── Message
│ │ │ ├── RemoveEventMessage.php
│ │ │ ├── CreateEventMessage.php
│ │ │ └── ModifyEventMessage.php
│ │ ├── Datamapper
│ │ │ ├── EventDataMapper.php
│ │ │ └── EventDataMapperInterface.php
│ │ └── MessageHandler
│ │ │ ├── RemoveEventMessageHandler.php
│ │ │ ├── CreateEventMessageHandler.php
│ │ │ └── ModifyEventMessageHandler.php
│ └── Infrastructure
│ │ └── ORM
│ │ ├── Cycle
│ │ └── composer.json
│ │ └── Doctrine
│ │ ├── composer.json
│ │ └── config
│ │ ├── Event.orm.xml
│ │ └── EventTranslation.orm.xml
│ ├── depfile.yaml
│ ├── phpunit.xml.dist
│ ├── composer.json
│ └── .php-cs-fixer.dist.php
└── LICENSE
/frameworks/cake/plugins/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/resources/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/View/Cell/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/tests/Fixture/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/webroot/js/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/laminas/data/cache/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/laravel/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/Model/Behavior/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/Model/Entity/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/Model/Table/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/View/Helper/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/laravel/resources/css/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/templates/cell/.gitkeep:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/frameworks/symfony/src/Controller/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/src/Controller/Component/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/tests/TestCase/View/Helper/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/laravel/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
2 |
--------------------------------------------------------------------------------
/frameworks/cake/tests/TestCase/Model/Behavior/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/cake/tests/TestCase/Controller/Component/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frameworks/laravel/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/resources/js/app.js:
--------------------------------------------------------------------------------
1 | require('./bootstrap');
2 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laminas/config/autoload/.gitignore:
--------------------------------------------------------------------------------
1 | local.php
2 | *.local.php
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/frameworks/laravel/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/frameworks/laminas/COPYRIGHT.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2020 Laminas Project a Series of LF Projects, LLC. (https://getlaminas.org/)
2 |
--------------------------------------------------------------------------------
/frameworks/symfony/config/routes.yaml:
--------------------------------------------------------------------------------
1 | #index:
2 | # path: /
3 | # controller: App\Controller\DefaultController::index
4 |
--------------------------------------------------------------------------------
/frameworks/laminas/.gitattributes:
--------------------------------------------------------------------------------
1 | /.github/ export-ignore
2 | /bin/remove-package-artifacts.php export-ignore
3 | /CHANGELOG.md
4 |
--------------------------------------------------------------------------------
/frameworks/spiral/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | vendor
3 | runtime
4 | rr*
5 | spiral*
6 | .env
7 | .phpunit.result.cache
8 | composer.lock
9 |
--------------------------------------------------------------------------------
/src/event/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/
2 |
3 | .deptrac.cache
4 | .php-cs-fixer.cache
5 | .phpunit.result.cache
6 |
7 | tests/reports
8 | tests/var
9 |
--------------------------------------------------------------------------------
/frameworks/cake/webroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/cake/webroot/favicon.ico
--------------------------------------------------------------------------------
/frameworks/spiral/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/spiral/public/favicon.ico
--------------------------------------------------------------------------------
/frameworks/symfony/config/bundles.php:
--------------------------------------------------------------------------------
1 | ['all' => true],
5 | ];
6 |
--------------------------------------------------------------------------------
/frameworks/laminas/docker-compose.yml:
--------------------------------------------------------------------------------
1 | laminas:
2 | build: .
3 | dockerfile: Dockerfile
4 | ports:
5 | - "8080:80"
6 | volumes:
7 | - .:/var/www
8 |
--------------------------------------------------------------------------------
/frameworks/cake/webroot/img/cake-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/cake/webroot/img/cake-logo.png
--------------------------------------------------------------------------------
/frameworks/cake/webroot/img/cake.icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/cake/webroot/img/cake.icon.png
--------------------------------------------------------------------------------
/frameworks/cake/webroot/img/cake.power.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/cake/webroot/img/cake.power.gif
--------------------------------------------------------------------------------
/frameworks/laminas/public/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alexander-schranz/hexagonal-architecture-study/HEAD/frameworks/laminas/public/img/favicon.ico
--------------------------------------------------------------------------------
/frameworks/laravel/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.scss linguist-vendored
4 | *.js linguist-vendored
5 | CHANGELOG.md export-ignore
6 |
--------------------------------------------------------------------------------
/frameworks/laminas/.gitignore:
--------------------------------------------------------------------------------
1 | .vagrant/
2 | vendor/
3 | config/development.config.php
4 | data/cache/*
5 | !data/cache/.gitkeep
6 | phpunit.xml
7 | .phpunit.result.cache
8 |
--------------------------------------------------------------------------------
/frameworks/cake/webroot/.htaccess:
--------------------------------------------------------------------------------
1 |
23 | SQL Query: 24 | = h($error->queryString) ?> 25 |
26 | 27 | params)) : ?> 28 | SQL Query Params: 29 | params) ?> 30 | 31 | = $this->element('auto_table_warning') ?> 32 | end(); 35 | endif; 36 | ?> 37 |39 | = __d('cake', 'Error') ?>: 40 | = __d('cake', 'The requested address {0} was not found on this server.', "'{$url}'") ?> 41 |
42 | -------------------------------------------------------------------------------- /frameworks/symfony/config/services.yaml: -------------------------------------------------------------------------------- 1 | # This file is the entry point to configure your own services. 2 | # Files in the packages/ subdirectory configure your dependencies. 3 | 4 | # Put parameters here that don't need to change on each machine where the app is deployed 5 | # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration 6 | parameters: 7 | 8 | services: 9 | # default configuration for services in *this* file 10 | _defaults: 11 | autowire: true # Automatically injects dependencies in your services. 12 | autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. 13 | 14 | # makes classes in src/ available to be used as services 15 | # this creates a service per class whose id is the fully-qualified class name 16 | App\: 17 | resource: '../src/' 18 | exclude: 19 | - '../src/DependencyInjection/' 20 | - '../src/Entity/' 21 | - '../src/Kernel.php' 22 | - '../src/Tests/' 23 | 24 | # add more service definitions when explicit configuration is needed 25 | # please note that last definitions always *replace* previous ones 26 | -------------------------------------------------------------------------------- /frameworks/laravel/config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /src/event/src/Domain/Exception/EventTranslationNotFoundException.php: -------------------------------------------------------------------------------- 1 | $value) { 18 | if (\is_object($value)) { 19 | $value = get_debug_type($value); 20 | } else { 21 | $value = json_encode($value); 22 | } 23 | 24 | $filterText[] = sprintf('"%s" %s', $key, $value); 25 | } 26 | 27 | $message = sprintf( 28 | 'The event translation with %s not found for event %s.', 29 | implode(' and ', $filterText), 30 | $event->__toString() 31 | ); 32 | 33 | parent::__construct( 34 | $message, 35 | $code, 36 | $previous 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/event/tests/Application/Message/CreateEventMessageTest.php: -------------------------------------------------------------------------------- 1 | createMessage(['locale' => 'sv']); 15 | $this->assertSame('sv', $message->getLocale()); 16 | } 17 | 18 | public function testGetData(): void 19 | { 20 | $message = $this->createMessage([ 21 | 'locale' => 'sv', 22 | 'title' => 'My Title', 23 | ]); 24 | $this->assertSame([ 25 | 'locale' => 'sv', 26 | 'title' => 'My Title', 27 | ], $message->getData()); 28 | } 29 | 30 | /** 31 | * @param mixed[] $data 32 | */ 33 | protected function createMessage(array $data = []): CreateEventMessage 34 | { 35 | return new CreateEventMessage([ 36 | 'locale' => $data['locale'] ?? 'en', 37 | 'title' => $data['title'] ?? 'Default Title', 38 | ]); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/event/src/Application/Message/ModifyEventMessage.php: -------------------------------------------------------------------------------- 1 | $identifier 13 | * @param array{ 14 | * locale: string, 15 | * title: string, 16 | * }|array23 | SQL Query: 24 | = h($error->queryString) ?> 25 |
26 | 27 | params)) : ?> 28 | SQL Query Params: 29 | params) ?> 30 | 31 | 32 | Error in: 33 | = sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?> 34 | 35 | element('auto_table_warning'); 37 | 38 | $this->end(); 39 | endif; 40 | ?> 41 |43 | = __d('cake', 'Error') ?>: 44 | = h($message) ?> 45 |
46 | -------------------------------------------------------------------------------- /frameworks/laravel/database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name(), 27 | 'email' => $this->faker->unique()->safeEmail(), 28 | 'email_verified_at' => now(), 29 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 30 | 'remember_token' => Str::random(10), 31 | ]; 32 | } 33 | 34 | /** 35 | * Indicate that the model's email address should be unverified. 36 | * 37 | * @return \Illuminate\Database\Eloquent\Factories\Factory 38 | */ 39 | public function unverified() 40 | { 41 | return $this->state(function (array $attributes) { 42 | return [ 43 | 'email_verified_at' => null, 44 | ]; 45 | }); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/event/src/Application/MessageHandler/CreateEventMessageHandler.php: -------------------------------------------------------------------------------- 1 | $eventDataMappers 16 | */ 17 | public function __construct( 18 | private EventRepositoryInterface $eventRepository, 19 | private iterable $eventDataMappers 20 | ) { 21 | } 22 | 23 | public function __invoke(CreateEventMessage $message): EventInterface 24 | { 25 | $event = $this->eventRepository->create($message->getLocale()); 26 | $eventTranslation = $this->eventRepository->createTranslation($event, $event->getDefaultLocale()); 27 | 28 | foreach ($this->eventDataMappers as $eventDataMapper) { 29 | $eventDataMapper->map($event, $eventTranslation, $message->getData()); 30 | } 31 | 32 | $this->eventRepository->add($event); 33 | 34 | return $event; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /frameworks/laminas/phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 |