Application\Admin\Controllers\TaskController::onConstruct PHP Method

onConstruct() public method

public onConstruct ( )
    public function onConstruct()
    {
        foreach (glob($this->alias->get('@app') . '/*', GLOB_ONLYDIR) as $entry) {
            $files = glob($entry . '/Tasks/*Task.php');
            foreach ($files as $file) {
                $file = str_replace('\\', '/', $file);
                if (preg_match('#([^/]*/([^/]*)/Tasks/(.*)Task)\\.php$#i', $file, $match) === 1) {
                    $this->_tasks[$match[2] . ':' . $match[3]] = str_replace('/', '\\', $match[1]);
                }
            }
        }
    }