Get the container.

@return Subbly\Framework\Container
188071
public static function getContainer()
    {
        if (!(self::$container instanceof Container)) {
            self::$container = new Container();
            self::$container->load();
        }

        return self::$container;
    }
1018780
public function getContainer()
    {
        if (is_null($this->_container)) {
            $container = ContainerBuilder::buildContainer([
                'sharedEventManager' => Definition::object(
                        'Zend\EventManager\SharedEventManager'
                    )
            ]);
            $this->setContainer($container);
        }
        return $this->_container;
    }
256636
public function getContainer() {
		if(!$this->container) {
			$this->container = $this->buildContainer();
			$this->container['kernel'] = $this;
		}
		return $this->container;
	}
980669
public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];

            $this->controller = $this->container->make(ltrim($class, '\\'));
        }

        return $this->controller;
    }
883362
protected function Container()
    {
        if (!$this->container) {
            $this->container = new Container(Request::GetData('container'));
        }
        return $this->container;
    }
886497
public function getContainer(): Container
    {
        if ($this->containerInstance === null) {
            $this->containerInstance = $this->getCollector()->getContracts();
        }

        return $this->containerInstance;
    }
1123708
public function getCurrentContainerName()
    {
        if ($this->getContainerCode() !== null) {
            $container = $this->containersSource->get($this->getContainerCode());

            if ($this->getContainerName($container)) {
                return $this->getContainerName($container);
            }
        }
    }
734038
private function createContainer() {
        $container = new Container();

        $container->setDescription($this->getSentence());
        $container->setTitle($this->getTitle());

        return $container;
    }
579879
public static function getContainerInstance() : Container
    {
        if (self::$container === null) {
            self::$container = self::getUnboundContainerInstance();
        }

        return self::$container;
    }
565339
protected function buildContainer() {
		$cache = $this->getCache();
		if($cache) {
			if(($container = $cache->fetch('asgard.container')) instanceof \Asgard\Container\Container) {
				$container['kernel'] = $this;
				$container['errorHandler'] = $this->errorHandler;

				$this->container = $container;
				#make $this->container the default instance of Container, in case someones uses it
				\Asgard\Container\Container::setInstance($this->container);
				return $this->container;
			}
		}

		$bundles = $this->getAllBundles();
		#use the Container default instance, in case someones uses it
		$container = $this->container = \Asgard\Container\Container::singleton();
		$container['errorHandler'] = $this->errorHandler;
		$container['kernel'] = $this;
		$container['config'] = $this->getConfig();

		foreach($bundles as $bundle)
			$bundle->buildContainer($container);

		if($cache)
			$cache->save('asgard.container', $container);

		return $container;
	}
889352
public function getContainer()
    {
        if (is_null($this->_container)) {
            $def = [
                'configuration' => Definition::factory(
                    ['Slick\Configuration\Configuration', 'get'],
                    [$this->configFileName, $this->configType]
                ),
                'sharedEventManager' => Definition::object(
                    'Zend\EventManager\SharedEventManager'
                )
            ];
            $this->setContainer(ContainerBuilder::buildContainer($def));
        }
        return $this->_container;
    }
1297457
protected function getContainerBuilder(): ContainerBuilder
    {
        $container = new ContainerBuilder();
        $container->getParameterBag()->add($this->getKernelParameters());

        if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator')) {
            $container->setProxyInstantiator(new RuntimeInstantiator());
        }

        return $container;
    }
1081837
protected function getRealContainer()/*# : ContainerInterface */
    {
        $cont = $this->getContainer();

        // get delegator recursively
        if ($cont instanceof DelegatorAwareInterface &&
            $cont->hasDelegator()
        ) {
            $cont = $cont->getDelegator(true);
        }

        return $cont;
    }
1338663
protected function getContainerTag()
    {
        if ($this->container_tag === null) {
            $tag = new SwatHtmlTag('div');
        } else {
            $tag = $this->container_tag;
        }

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();
        return $tag;
    }
1077579
public function newContainer()
    {
        $refl = new ReflectionClass($this);
        $container = $refl->newInstanceArgs(func_get_args());
        $container->classSet($this->class);
        $container->propertyMapper = $this->propertyMapper;
        return $container;
    }
761513
public function classIsContainer()
    {
        if ( $this->ClassIsContainer === null )
        {
            $object = $this->object();
            $class = $object->contentClass();
            $this->ClassIsContainer = $class->attribute( 'is_container' );
        }
        return $this->ClassIsContainer;
    }
1221296
public function getScope()
    {
        return $this->request->getParam(
            'store'
        ) ? ContainerScopeInterface::SCOPE_STORE_CONTAINERS : ($this->request->getParam(
            'container'
        ) ? ContainerScopeInterface::SCOPE_CONTAINERS : ContainerScopeInterface::SCOPE_DEFAULT);
    }