public function getSecurity($context)
    {
        if (array_key_exists($context, $this->instances))
        {
            return $this->instances[$context];
        }

        $configuration = $this->getConfigurationFor($context);
        $this->addPermissionsFactoryListener($context);

        return $this->instances[$context] = $this->getSecurityFactory()->create($context, $configuration);
    }
public function getSecurity($context)
    {
        if (array_key_exists($context, $this->instances))
        {
            return $this->instances[$context];
        }

        $configuration = $this->getConfigurationFor($context);
        $this->addPermissionsFactoryListener($context);

        return $this->instances[$context] = $this->getSecurityFactory()->create($context, $configuration);
    }
public function getSecurity ( $ context ) { if ( array_key_exists ( $ context , $ this -> instances ) ) { return $ this -> instances [ $ context ] ; } $ configuration = $ this -> getConfigurationFor ( $ context ) ; $ this -> addPermissionsFactoryListener ( $ context ) ; return $ this -> instances [ $ context ] = $ this -> getSecurityFactory ( ) -> create ( $ context , $ configuration ) ; }
Get the Security instance for the given context.

@param string $context
@return Security
Get the Security instance for the given context .