using search extension in your own extension

dkorpar
Backer | 97
+
0
-

Is there an simple and easy way to register all services from folder/namespace/interface, in quick and easy way like with using SearchExtension. I've tried

	public function loadConfiguration(): void
	{
		$this->compiler->loadConfig(__DIR__ . '/../config/config.neon');
	}

and having in neon file from extension same syntax as in app config but it didn't work…
What would be appropriate solution here? I know I can traverse through all of them and add them in loop, but feels like it should be possible in more elegant, easier way…

Gappa
Member | 142
+
+1
-

I asked and then did it myself :)