protected function processTasks($tasks)
    {
        foreach ($tasks as $taskName => $taskConfig) {
            $serviceId = sprintf('task.%s', $taskName);
            $this->container->setDefinition(
                $serviceId,
                new Definition()
            )->setSynthetic(true);

            $command = $this->buildTask($taskName, $taskConfig);

            $this->container->set($serviceId, $command);
            $this->container->get('application')->add($command);
        }
    }
protected function processTasks($tasks)
    {
        foreach ($tasks as $taskName => $taskConfig) {
            $serviceId = sprintf('task.%s', $taskName);
            $this->container->setDefinition(
                $serviceId,
                new Definition()
            )->setSynthetic(true);

            $command = $this->buildTask($taskName, $taskConfig);

            $this->container->set($serviceId, $command);
            $this->container->get('application')->add($command);
        }
    }
protected function processTasks ( $ tasks ) { foreach ( $ tasks as $ taskName => $ taskConfig ) { $ serviceId = sprintf ( 'task.%s' , $ taskName ) ; $ this -> container -> setDefinition ( $ serviceId , new Definition ( ) ) -> setSynthetic ( true ) ; $ command = $ this -> buildTask ( $ taskName , $ taskConfig ) ; $ this -> container -> set ( $ serviceId , $ command ) ; $ this -> container -> get ( 'application' ) -> add ( $ command ) ; } }
Process tasks that the user has defined and turn them into commands
that can be ran.

@param array $tasks
Process tasks that the user has defined and turn them into commands that can be ran .