public getManager ( string $identifier ) : AppserverIo\Psr\Application\ManagerInterface | ||
$identifier | string | The unique identifier of the requested manager |
리턴 | AppserverIo\Psr\Application\ManagerInterface | The manager instance |
public function getManager($identifier)
{
if (isset($this->managers[$identifier])) {
return $this->managers[$identifier];
}
}
/** * Test if the NULL will be returned for an invalid manager request. * * @return void */ public function testGetInvalidManager() { $this->assertNull($this->application->getManager(MockManager::IDENTIFIER)); }