private function loadCoreTask(array $task)
    {
        //creates full namespace for task placed in Vegas library
        if (count($task) == 3) {
            $namespace = $this->toNamespace($task[1]);
            $taskName = ucfirst($task[2]);
        } else {
            //for \Vegas namespace tasks are placed in \Vegas\Task namespace
            $namespace = '';
            $taskName = ucfirst($task[1]);
        }
        $fullNamespace = strtr('\Vegas\:namespaceTask\\:taskName', array(
            ':namespace' => $namespace,
            ':taskName' =>  $taskName
        ));

        //registers task class in Class Loader
        $this->registerClass($fullNamespace . 'Task');

        //returns converted name of task (namespace of class containing task)
        return $fullNamespace;
    }
private function loadCoreTask(array $task)
    {
        //creates full namespace for task placed in Vegas library
        if (count($task) == 3) {
            $namespace = $this->toNamespace($task[1]);
            $taskName = ucfirst($task[2]);
        } else {
            //for \Vegas namespace tasks are placed in \Vegas\Task namespace
            $namespace = '';
            $taskName = ucfirst($task[1]);
        }
        $fullNamespace = strtr('\Vegas\:namespaceTask\\:taskName', array(
            ':namespace' => $namespace,
            ':taskName' =>  $taskName
        ));

        //registers task class in Class Loader
        $this->registerClass($fullNamespace . 'Task');

        //returns converted name of task (namespace of class containing task)
        return $fullNamespace;
    }
private function loadCoreTask ( array $ task ) { //creates full namespace for task placed in Vegas library if ( count ( $ task ) == 3 ) { $ namespace = $ this -> toNamespace ( $ task [ 1 ] ) ; $ taskName = ucfirst ( $ task [ 2 ] ) ; } else { //for \Vegas namespace tasks are placed in \Vegas\Task namespace $ namespace = '' ; $ taskName = ucfirst ( $ task [ 1 ] ) ; } $ fullNamespace = strtr ( '\Vegas\:namespaceTask\\:taskName' , array ( ':namespace' => $ namespace , ':taskName' => $ taskName ) ) ; //registers task class in Class Loader $ this -> registerClass ( $ fullNamespace . 'Task' ) ; //returns converted name of task (namespace of class containing task) return $ fullNamespace ; }
Loads task from Vegas libraries, mostly placed in vendor

@param array $task
@return string
@internal
Loads task from Vegas libraries mostly placed in vendor