composer require symplify/nette-adapter-for-symfony-bundles
Register extension:
# app/config/config.neon
extensions:
symfonyBundles: Symplify\NetteAdapterForSymfonyBundles\DI\NetteAdapterForSymfonyBundlesExtension
Register Symfony bundles just like Nette extensions:
symfonyBundles:
bundles:
# list all bundles like "your key": "bundle class"
alice: Hautelook\AliceBundle\HautelookAliceBundle
parameters:
# and it's parameters (bound by same key name)
alice:
locale: cs_CZ
That's it!
extensions:
symfonyBundles: Symplify\NetteAdapterForSymfonyBundles\DI\NetteAdapterForSymfonyBundles
services:
-
class: Symplify\NetteAdapterForSymfonyBundles\Tests\TacticianBundle\NetteTagsSource\SomeCommandHandler
tags:
tactician.handler:
- [command: Symplify\NetteAdapterForSymfonyBundles\Tests\TacticianBundle\NetteTagsSource\SomeCommand]
symfonyBundles:
bundles:
- League\Tactician\Bundle\TacticianBundle
extensions:
symfonyBundles: Symplify\NetteAdapterForSymfonyBundles\DI\NetteAdapterForSymfonyBundles
services:
- Symplify\NetteAdapterForSymfonyBundles\Tests\Container\ParametersSource\CustomMiddleware
symfonyBundles:
bundles:
tactician: League\Tactician\Bundle\TacticianBundle
parameters:
tactician:
commandbus:
default:
middleware:
# this is reference to service registered in Nette
- @Symplify\NetteAdapterForSymfonyBundles\Tests\Container\ParametersSource\CustomMiddleware
- tactician.middleware.command_handler
composer check-cs # see "scripts" section of composer.json for more details
vendor/bin/phpunit
Rules are simple:
- new feature needs tests
- all tests must pass
- 1 feature per PR
We would be happy to merge your feature then!