public function add(SecurityContextConfiguration $configuration)
    {
        $this->contexts[$configuration->getName()] = $configuration;

        $this->updateMappings(
            $configuration,
            $this->container->make(EntityManagerInterface::class)
        );
    }
public function add(SecurityContextConfiguration $configuration)
    {
        $this->contexts[$configuration->getName()] = $configuration;

        $this->updateMappings(
            $configuration,
            $this->container->make(EntityManagerInterface::class)
        );
    }
public function add ( SecurityContextConfiguration $ configuration ) { $ this -> contexts [ $ configuration -> getName ( ) ] = $ configuration ; $ this -> updateMappings ( $ configuration , $ this -> container -> make ( EntityManagerInterface :: class ) ) ; }
Add a security context.

@param SecurityContextConfiguration $configuration
@throws \BadMethodCallException
Add a security context .