Skip to content

Instantly share code, notes, and snippets.

@yawnston
Last active March 15, 2021 14:17
Show Gist options
  • Save yawnston/5ea1f2e2f09d2e65d68921cf2a219fd4 to your computer and use it in GitHub Desktop.
Save yawnston/5ea1f2e2f09d2e65d68921cf2a219fd4 to your computer and use it in GitHub Desktop.
// TEST CASE 1
interface IA
{
}
interface IB
{
}
class ComponentA extends ComponentBase implements IA
{
/**
* @inject IB
*/
public $d;
public function __construct(ComponentB $b)
{
parent::__construct();
}
}
class ComponentB extends ComponentBase
{
}
// TEST CASE 2
interface IA
{
}
interface IB
{
}
class ComponentA extends ComponentBase implements IA
{
/**
* @inject ComponentD
*/
public $d;
public function __construct(IB $b)
{
parent::__construct();
}
}
class ComponentB extends ComponentBase
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment