Allow for auto-configuring Actions
This commit is contained in:
parent
2bc3d582e9
commit
25780e084b
|
@ -12,7 +12,7 @@ use Symfony\Component\Finder\Finder;
|
|||
final class OpdaviesBlogServiceProvider implements ServiceProviderInterface {
|
||||
|
||||
public function register(ContainerBuilder $container): void {
|
||||
foreach (['EventSubscriber', 'Repository', 'Service'] as $directory) {
|
||||
foreach (['Action', 'EventSubscriber', 'Repository', 'Service'] as $directory) {
|
||||
$files = Finder::create()
|
||||
->in(__DIR__ . '/' . $directory)
|
||||
->files()
|
||||
|
|
Loading…
Reference in a new issue