composer require chomenko/auto-install
autoInstall:
dirs:
- %rootDir%/app
extensions:
autoInstall: Chomenko\AutoInstall\AutoInstallExtension
use Chomenko\AutoInstall\AutoInstall;
class MyService implements AutoInstall
{
}
Search class with prefix I
use Chomenko\AutoInstall\AutoInstall;
class MyService implements AutoInstall
{
}
interface IMyService
{
/**
* @return MyService
*/
public function create();
}
use Chomenko\AutoInstall\Config;
use Chomenko\AutoInstall\AutoInstall;
/**
* @Config\Tag({"My.tag", "My.nextag"})
*/
class MyService implements AutoInstall
{
}
use Chomenko\AutoInstall\Config;
use Chomenko\AutoInstall\AutoInstall;
/**
* @Config\Implement("App\IMyService")
*/
class MyService implements AutoInstall
{
}