final class CompanyMembersControllerFactory in Apigee Edge 8
Factory service that builds a company members controller.
@internal You should use the team membership manager service instead of this.
Hierarchy
- class \Drupal\apigee_edge_teams\CompanyMembersControllerFactory implements CompanyMembersControllerFactoryInterface
Expanded class hierarchy of CompanyMembersControllerFactory
1 string reference to 'CompanyMembersControllerFactory'
- apigee_edge_teams.services.yml in modules/
apigee_edge_teams/ apigee_edge_teams.services.yml - modules/apigee_edge_teams/apigee_edge_teams.services.yml
1 service uses CompanyMembersControllerFactory
File
- modules/
apigee_edge_teams/ src/ CompanyMembersControllerFactory.php, line 30
Namespace
Drupal\apigee_edge_teamsView source
final class CompanyMembersControllerFactory implements CompanyMembersControllerFactoryInterface {
/**
* Internal cache for created instances.
*
* @var \Drupal\apigee_edge_teams\CompanyMembersControllerInterface[]
*/
private $instances = [];
/**
* The SDK connector service.
*
* @var \Drupal\apigee_edge\SDKConnectorInterface
*/
private $connector;
/**
* The company membership object cache.
*
* @var \Drupal\apigee_edge_teams\CompanyMembershipObjectCacheInterface
*/
private $companyMembershipObjectCache;
/**
* CompanyMembersControllerFactory constructor.
*
* @param \Drupal\apigee_edge\SDKConnectorInterface $connector
* The SDK connector service.
* @param \Drupal\apigee_edge_teams\CompanyMembershipObjectCacheInterface $company_membership_object_cache
* The company membership object cache.
*/
public function __construct(SDKConnectorInterface $connector, CompanyMembershipObjectCacheInterface $company_membership_object_cache) {
$this->connector = $connector;
$this->companyMembershipObjectCache = $company_membership_object_cache;
}
/**
* {@inheritdoc}
*/
public function companyMembersController(string $company) : CompanyMembersControllerInterface {
if (!isset($this->instances[$company])) {
$this->instances[$company] = new CompanyMembersController($company, $this->connector, $this->companyMembershipObjectCache);
}
return $this->instances[$company];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CompanyMembersControllerFactory:: |
private | property | The company membership object cache. | |
CompanyMembersControllerFactory:: |
private | property | The SDK connector service. | |
CompanyMembersControllerFactory:: |
private | property | Internal cache for created instances. | |
CompanyMembersControllerFactory:: |
public | function |
Returns a preconfigured company members controller. Overrides CompanyMembersControllerFactoryInterface:: |
|
CompanyMembersControllerFactory:: |
public | function | CompanyMembersControllerFactory constructor. |