Scalr\Model\Entity\CloudCredentials::release PHP Method

release() public method

Releases cached self in DI
public release ( )
    public function release()
    {
        $container = \Scalr::getContainer();
        $container->release("keychain.cloud_creds.{$this->id}");
        if (isset($this->_envBinds)) {
            foreach ($this->_envBinds as $envCloudCreds) {
                $container->release("keychain.env_cloud_creds.{$envCloudCreds->envId}.{$envCloudCreds->cloud}");
            }
        }
    }