thephpleague / tactician-bundle

Bundle to integrate Tactician with Symfony projects
MIT License
245 stars 43 forks source link

Put handler service tag in constant #108

Closed grongor closed 5 years ago

grongor commented 5 years ago

It's useful if you want to reference the tag outside this package and not in the configuration files, for example like this:

$container->registerForAutoconfiguration(CommandHandler::class)
    ->addTag(TagBasedMapping::TAG_NAME, ['typehints' => true]);
rosstuck commented 5 years ago

Thanks!