Get the manager.

@param string $alias

@throws \InvalidArgumentException

@return ManagerInterface
549467
public function get(string $alias): ManagerInterface
    {
        if (!\array_key_exists($alias, $this->managers)) {
            throw new \InvalidArgumentException(\sprintf('The manager "%s" does not exist', $alias));
        }

        return $this->managers[$alias];
    }
998977
public function alias($alias = null)
    {
        if ($alias !== null) {
            $this->alias = $alias;
        }

        return $this->alias;
    }
1077950
public function get($alias)
    {
        return isset($this->services[$alias]) ? $this->services[$alias] : null;
    }
923571
public function getAuthorize($alias)
    {
        if (empty($this->_authorizeObjects)) {
            $this->constructAuthorize();
        }

        return isset($this->_authorizeObjects[$alias]) ? $this->_authorizeObjects[$alias] : null;
    }
38008
protected function
	GetConnectionConfig($Alias) {
	/*//
	@return Nether\Database\Connection
	fetch the specified configuration. if none is found then it will throw an
	exception instead.
	//*/

		$Config = Nether\Option::Get('nether-database-connections');

		if(!array_key_exists($Alias,$Config))
		throw new Nether\Database\Error\InvalidConfig($Alias);

		if($Config[$Alias] instanceof Nether\Database\Connection)
		return $Config[$Alias];

		return new Nether\Database\Connection($Config[$Alias]);
	}
847391
public function getAlias($id)
    {
        $id = $this->normalizeId($id);

        if (!isset($this->aliasDefinitions[$id])) {
            throw new InvalidArgumentException(sprintf('The service alias "%s" does not exist.', $id));
        }

        return $this->aliasDefinitions[$id];
    }
185756
private function getLoader($alias)
    {
        if (!$this->hasLoader($alias)) {
            throw new \RuntimeException(sprintf('Form loader with alias "%s" not found.', $alias));
        }

        return $this->loaders[$alias];
    }
1167090
public function getManager($connection = null)
    {
        $connection = $connection ? strtolower($connection) : 'default';

        if (!isset($this->managers[$connection])) {
            $this->managers[$connection] = $this->create($connection);
        }

        return $this->managers[$connection];
    }
353312
public function setAlias($alias)
    {
        $aliasManipulator = new AliasManipulator($this->originalDir, $this->alias);
        $aliasManipulator->setAlias($alias);

        return $aliasManipulator;
    }
1244148
public function alias($alias = null)
    {
        if ($alias !== null) {
            $this->setAlias($alias);
        }

        return $this->getAlias();
    }
517340
public function getManager($name)
    {
        $builder = $this->getBuilder($name);
        if (!$builder instanceof Builder) {
            throw new \RuntimeException(sprintf('"%s" is not a registered manager', $name));
        }

        $manager = $builder->getManager();

        $this->registerGlobalAnnotationLoader();

        return $manager;
    }
5705
protected function mapper($alias = false)
    {
        return Manager::getInstance()->getMapper($alias ? $alias : $this->sMapperAlias);
    }
562049
public function getFetcher($alias)
    {
        if (!is_string($alias)) {
            throw new UnexpectedTypeException($alias, 'string');
        }

        if (!isset($this->fetchers[$alias])) {
            throw new \InvalidArgumentException(sprintf('Could not load configuration fetcher "%s"', $alias));
        }

        return $this->fetchers[$alias];
    }
400776
public function getManagerForClass($class)
    {
        // Check for namespace alias
        if (strpos($class, ':') !== false) {
            list($namespaceAlias, $simpleClassName) = explode(':', $class, 2);
            $class                                  = $this->getAliasNamespace($namespaceAlias) . '\\' . $simpleClassName;
        }

        $proxyClass = new ReflectionClass($class);
        if ($proxyClass->implementsInterface(Proxy::class)) {
            $class = $proxyClass->getParentClass()->getName();
        }

        $managerNames = $this->getManagerNames();

        if (count($managerNames) === 1) {
            return $this->getManager(reset($managerNames));
        }

        foreach ($managerNames as $name) {
            $manager = $this->getManager($name);

            if (!$manager->getMetadataFactory()->isTransient($class)) {
                foreach ($manager->getMetadataFactory()->getAllMetadata() as $metadata) {
                    if ($metadata->getName() === $class) {
                        return $manager;
                    }
                }
            }
        }
    }
1271897
public function getFunctionByAlias($alias)
    {
        return $this->hasFunctionAlias($alias) ? $this->getExpression($this->getHash($alias)) : null;
    }
1260204
public static function getInstance(array $aliases = []) : Manager
    {
        if (is_null(static::$instance)) {
            return static::$instance = new static($aliases);
        }

        static::$instance->alias($aliases);

        return static::$instance;
    }
554445
public function getSubqueryByAlias($alias)
    {
        return $this->hasSubqueryAlias($alias) ? $this->getExpression($this->getHash($alias)) : null;
    }