protected function getContainer()
    {
        if (!isset($GLOBALS['container'])) {
            $GLOBALS['container'] = new PimpleGate([], $this->getSymfonyContainer());
        }
        $container = $GLOBALS['container'];

        if (!$container instanceof PimpleGate) {
            throw new \RuntimeException(
                'Dependency container is incompatible class. Expected PimpleGate but found ' . get_class($container),
                1
            );
        }

        return $container;
    }
protected function getContainer()
    {
        if (!isset($GLOBALS['container'])) {
            $GLOBALS['container'] = new PimpleGate([], $this->getSymfonyContainer());
        }
        $container = $GLOBALS['container'];

        if (!$container instanceof PimpleGate) {
            throw new \RuntimeException(
                'Dependency container is incompatible class. Expected PimpleGate but found ' . get_class($container),
                1
            );
        }

        return $container;
    }
protected function getContainer ( ) { if ( ! isset ( $ GLOBALS [ 'container' ] ) ) { $ GLOBALS [ 'container' ] = new PimpleGate ( [ ] , $ this -> getSymfonyContainer ( ) ) ; } $ container = $ GLOBALS [ 'container' ] ; if ( ! $ container instanceof PimpleGate ) { throw new \ RuntimeException ( 'Dependency container is incompatible class. Expected PimpleGate but found ' . get_class ( $ container ) , 1 ) ; } return $ container ; }
Get the currently defined global container or create it if no container is present so far.

@return PimpleGate

@throws \RuntimeException When an incompatible DIC is encountered.

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Get the currently defined global container or create it if no container is present so far .