Build the manager with the properties that have been defined.

@return ConsulEnvManager
190838
public function build(): ConsulEnvManager
    {
        $kv = (new ServiceFactory([
            'base_uri' => $this->consulServer
        ]))->get('kv');

        $manager = new ConsulEnvManager(
            $kv,
            $this->overwriteEvenIfDefined
        );

        $this->clear();

        return $manager;
    }
613201
public function getManagers()
    {
        $managers = array_map(
            function (Builder $builder) {
                return $builder->getManager();
            },
            $this->builders
        );

        $this->registerGlobalAnnotationLoader();

        return $managers;
    }
904229
final public function build()
    {
        return new ImageManager($this->getPath(), $this->getRootDir(), $this->getRootUrl(), $this->getConfig());
    }
887878
private function createModelManagerService($adminName, Definition $ormModelManager, Definition $proxyRepository)
    {
        $serviceName = sprintf('sonata.%s.model_manager', $adminName);
        $service = new Definition($serviceName);
        $service->setClass('Marmelab\SonataElasticaBundle\Model\ElasticaModelManager');
        $service->setArguments(array(
            $ormModelManager,
            $proxyRepository
        ));

        return $service;
    }
57098
public function initializeManagers()
    {

        // initialize the registered managers
        /** @var \AppserverIo\Psr\Application\ManagerInterface $manager */
        foreach ($this->getManagers() as $manager) {
            // log the manager we want to initialize
            \debug(sprintf('Now register manager %s for application %s', get_class($manager), $this->getName()));

            // initialize the manager instance
            $manager->initialize($this);

            // log the manager we've successfully registered
            \debug(sprintf('Now registered manager %s for application %s', get_class($manager), $this->getName()));
        }
    }
525935
protected function _createManager(array $definitions)
    {
        $manager = new DefinitionManager();

        foreach ($definitions as $name => $definition)
        {
            if ($definition instanceof DefinitionHelperInterface) {
                /** @var DefinitionHelperInterface $definition */
                $manager->add($definition->getDefinition($name));
            } else if ($definition instanceof EntryReference) {
                /** @var EntryReference $definition */
                $manager->add(new AliasDefinition($name, $definition->getName()));
            } else {
                $manager->add(new ValueDefinition($name, $definition));
            }
        }
        return $manager;
    }
293350
protected function buildDispatcher()
    {
        $this->app->singleton(
            'Ratchet\Wamp\WampServerInterface',
            Dispatcher::class
        );
        
        return $this->Dispatcher = $this->app->make('Ratchet\Wamp\WampServerInterface', [$this->getSession(), $this->buildKernel(), clone $this->out]);
    }
1066774
protected function setupManager()
    {
        $factory = new ConnectionFactory($this->container);

        $this->manager = new DatabaseManager($this->container, $factory);
    }
642615
protected function buildManager()
    {
        $config = new Configuration;

        $this->setUpGeneralConfigurations($config);
        $this->setUpSpecificConfigurations($config);

        $documentManager = DocumentManager::create($this->getOption('connection'), $config, $this->getEventManager());

        if ($this->getRepositoryFactory() !== null) {
            $documentManager->setRepositoryFactory($this->getRepositoryFactory());
        }

        if ($this->getDefaultRepositoryClass() !== null) {
            $documentManager->setDefaultRepositoryClassName($this->getDefaultRepositoryClass());
        }

        return $documentManager;
    }
1358953
public function build()
    {
        if(null == $this->scheduleBuilder) {
            $this->scheduleBuilder = SimpleScheduleBuilder::simpleSchedule();
        }

        if (null == $this->startTime) {
            $this->startTime = new \DateTime();
        }

        $trigger = $this->scheduleBuilder->build();

        $trigger->setCalendarName($this->calendarName);
        $trigger->setDescription($this->description);
        $trigger->setStartTime($this->startTime);
        $trigger->setEndTime($this->endTime);

        if(null == $this->key) {
            $this->key = new Key(Key::createUniqueName(null), null);
        }

        $trigger->setKey($this->key);

        if($this->jobKey) {
            $trigger->setJobKey($this->jobKey);
        }

        $trigger->setPriority($this->priority);

        if($this->jobDataMap) {
            $trigger->setJobDataMap($this->jobDataMap);
        }

        return $trigger;
    }
375830
private function createManager()
    {
        $config = $this->generateConfig();

        $algoliaManager = $this->algoliaFactory->make($config);
        $algoliaManager->setEnv($this->env);

        return $algoliaManager;
    }
461675
protected function getMailManager()
    {
        // Persist the mail manager between invocations. This is necessary for
        // remembering and reinstating the original mail backend.
        if (is_null($this->mailManager)) {
            $this->mailManager = new DrupalMailManager($this->getDriver());
        }
        return $this->mailManager;
    }
1000289
protected function prepareProcessBuilder()
    {
        $pb = new ProcessBuilder();
        $pb->inheritEnvironmentVariables();

        if ($this->sudo) {
            $pb->add('sudo');
        }
        $pb->add($this->bin);
        if ($this->config) {
            $pb->add('--config')
                ->add($this->config);
        }

        $pb->add('--rotate');

        return $pb;
    }
1070206
public function build()
    {
        $panel = new DefaultPanelContainer();
        $panel->setEnvironment($this->environment);

        /** @var Contao2BackendViewDefinitionInterface $viewDefinition */
        $viewDefinition = $this
            ->environment
            ->getDataDefinition()
            ->getDefinition(Contao2BackendViewDefinitionInterface::NAME);

        foreach ($viewDefinition->getPanelLayout()->getRows() as $panelKey => $row) {
            $panelRow = new DefaultPanel();
            $panel->addPanel($panelKey, $panelRow);
            foreach ($row as $element) {
                /** @var ElementInformationInterface $element */
                if (null !== $instance = $this->createElement($element)) {
                    $panelRow->addElement($element->getName(), $instance);
                }
            }
        }

        return $panel;
    }
404857
public function build()
    {
        return $this->from($this->mailData['from'], $this->mailData['from_name'])
                    ->to($this->mailData['to'], $this->mailData['to_name'])
                    ->subject('Activeer je account op ' . $this->settings['domain'])
                    ->view('chuckcms::backend.mails.userActivationMail');
    }
704662
public function build()
    {
        $result = new Finder();
        if (method_exists($result, 'useBestAdapter')) {
            $result->useBestAdapter();
        }
        $result->ignoreDotFiles(false);
        $result->ignoreVCS(false);

        return $result;
    }
1267473
public function getProjectManager()
    {
        if (null === $this->projectManager) {
            $this->projectManager = new ProjectManager($this->httpClient, $this->messageFactory, $this->serializer);
            $this->projectManager->setHost($this->host);
        }
        return $this->projectManager;
    }