getProvider() public method

Gets the provider matching the specified class name and optionally a tag.
public getProvider ( string $name, string | null $tag = null ) : ScriptFUSION\Porter\Provider\Provider
$name string Provider class name.
$tag string | null Optional. Provider tag.
return ScriptFUSION\Porter\Provider\Provider
Esempio n. 1
0
 public function testGetStaticProviderTag()
 {
     $this->setExpectedException(ProviderNotFoundException::class);
     $this->porter->getProvider(StaticDataProvider::class, 'foo');
 }