talentrydev / message-broker-administration-bundle
Symfony bundle integrating talentrydev/message-broker-administration library
2.0.0
2024-06-14 14:53 UTC
Requires
- php: ^8.3
- symfony/config: ^6.3
- symfony/dependency-injection: ^6.3
- symfony/framework-bundle: ^6.3
- symfony/yaml: ^6.3
- talentrydev/message-broker-administration: ^2.0.0
Requires (Dev)
- doctrine/doctrine-bundle: ^2.11.1
- jms/serializer-bundle: ^5
- phpunit/phpunit: ^11
- squizlabs/php_codesniffer: ^3.5
- symfony/monolog-bundle: ^3.8
- talentrydev/message-broker-bundle: ^5.0.0
README
This is a Symfony bundle used for integrating talentrydev/message-broker-administration library into a Symfony project. It is an add-on bundle, so you cannot use it without talentrydev/message-broker-bundle.
Installing
- Run:
composer require talentrydev/message-broker-administration-bundle
- Add the MessageBrokerAdministrationBundle to your kernel's
registerBundles
method:
return [
//...
new \Talentry\MessageBrokerAdministrationBundle\MessageBrokerAdministrationBundle();
];
- To load doctrine mappings from annotations, add the following to your doctrine config:
doctrine:
orm:
entity_managers:
default:
mappings:
MessageBrokerAdministration:
type: attribute
dir: '%kernel.project_dir%/vendor/talentrydev/message-broker-administration/src/Domain/Entity'
prefix: 'Talentry\MessageBrokerAdministration\Domain\Entity'
- To execute doctrine migrations, add the following to your doctrine-migrations bundle config:
doctrine_migrations:
migrations_paths:
'Talentry\MessageBrokerAdministration\Infrastructure\DoctrineMigrations': '%kernel.project_dir%/vendor/talentrydev/message-broker-administration/src/Infrastructure/DoctrineMigrations'
- To register bundle routes, add the following to the symfony routing file (prefix is optional and can be set to anything you choose):
message_broker_administration:
resource: '@MessageBrokerAdministrationBundle/Resources/config/routing.yml'
prefix: '/api/v1/admin/message-broker/'