Get controller name.

@return string
4989
public function getControllerName()
    {
        $controller = Str::studly($this->getEntities()).'Controller';

        if ($this->console->option('prefix')) {
            $controller = Str::studly($this->getPrefix('/')).$controller;
        }

        return str_replace('/', '\\', $controller);
    }
1277313
protected function getControllerPrefix(ReflectionClass $controller)
    {
        preg_match("~\@prefix\s([a-zA-Z\\\_]+)~i", (string) $controller->getDocComment(), $prefix);
        return isset($prefix[1]) ? $prefix[1] : str_replace("controller", "", strtolower($controller->getShortName()));
    }
216221
public function getName()
    {
        $name = '';

        switch ($this->_clientId)
        {
            case Bootstrapper::SITE:
                $name = 'site';
                break;
            case Bootstrapper::ADMIN:
                $name = 'administrator';
                break;
            default:
                $name = 'cli';
                break;
        }

        return $name;
    }
20658
public function controllerName() {
        $request = $this->stack->getCurrentRequest();
        if ($request instanceof Request) {
            $string = $request->get('_controller');
            $parts = explode('::', $string);
            $controller = $parts[0];
            $pattern = "#Controller\\\([a-zA-Z\\\]*)Controller#";
            $matches = array();
            preg_match($pattern, $controller, $matches);
            if (isset($matches[1])) {
                return strtolower(str_replace('\\', '_', $matches[1]));
            }

            return '';
        }

        return '';
    }
1241317
public static String getControllerName() {
		Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
		if (sessionMap.containsKey(DART_CONTROLLER_NAME)) {
			return (String) sessionMap.get(DART_CONTROLLER_NAME);
		}
		return null;
	}
989374
public function getController()
    {
        if(!($this->_controller instanceof ControllerInterface))
        {
            //Make sure we have a controller identifier
            if(!($this->_controller instanceof ObjectIdentifier)) {
                $this->setController($this->_controller);
            }

            $config = array(
                'request' 	 => $this->getRequest(),
                'user'       => $this->getUser(),
                'response'   => $this->getResponse(),
                'dispatched' => $this
            );

            $this->_controller = $this->getObject($this->_controller, $config);

            //Make sure the controller implements ControllerInterface
            if(!$this->_controller instanceof ControllerInterface)
            {
                throw new \UnexpectedValueException(
                    'Controller: '.get_class($this->_controller).' does not implement ControllerInterface'
                );
            }
        }

        return $this->_controller;
    }
216122
public function controllerList()
    {
        $names = $this->controllerManager->getCanonicalNames();

        $controllers = array();

        foreach ($names as $name) {
            try {
                $controllers[$name] = $this->controllerManager->get($name);
            } catch (\Exception $e) {
                continue;
            }
        }

        return $controllers;
    }
881928
public function getController()
    {
        if (isset($this->uris[0]) && '' !== $this->uris[0]) {
            $_controller = $this->uris[0];
        } else {
            throw new NotFoundException('Cannot dispatch controller name.');
        }

        return strip_tags($_controller);
    }
980669
public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];

            $this->controller = $this->container->make(ltrim($class, '\\'));
        }

        return $this->controller;
    }
277358
public function getName()
	{
		if (empty($this->name))
		{
			$reflect = new \ReflectionClass($this);

			$this->name = strtolower(str_replace('Driver', '', $reflect->getShortName()));
		}

		return $this->name;
	}
1141437
public function getControllers()
    {
        $map = $this->map;
        $result = array();

        foreach ($map as $template => $options) {
            if (isset($options['controller'])) {
                $result[] = $options['controller'];
            }
        }

        return $result;
    }
909716
public function getPath()
    {
        return $this->getBasePath() . '/' . parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . '/' . $this->getControllerName() . 'Controller.php';
    }
650624
public function getController()
    {
        if ($this->controller instanceof MbController) {
            return $this->controller;
        }

        if (is_string($this->controller)) {
            $this->controller = MbController::create($this->controller);
        } else {
            throw new MbException("No Controller has been set for the page {$this->getName()}.");
        }

        return $this->controller;
    }
897683
private function getGroupControllerNamespace() : string
    {
        $controllerNamespace = '';

        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['controllerNamespace'])) {
                // Add trailing slashes if they're not there already
                if (mb_substr($groupOptions['controllerNamespace'], -1) !== '\\') {
                    $groupOptions['controllerNamespace'] .= '\\';
                }

                $controllerNamespace .= $groupOptions['controllerNamespace'];
            }
        }

        return $controllerNamespace;
    }
228917
public function detectControllerName()
    {
        $pattern = '#/'.$this->controllerNameRegex().'#i';
        if (!preg_match($pattern, $this->path, $matches)) {
            return false;
        }

        return $matches[1];
    }
561004
public function getExpirationTag() : string
    {
        // An approximate, quick-to-compute rule that will force renewing the cache if a controller is added are a parameter is fetched.
        return implode('-/-', $this->controllers).($this->controllerDetector !== null ? $this->controllerDetector->getExpirationTag() : '');
    }
370693
public function getController()
    {
        if ($controllerData = $this->component->getData('_controller')) {
            return $controllerData;
        }

        return $this->variation->getConfiguration(
            'components',
            $this->component->getComponentType()->getName(),
            'controller',
            $this->component->getComponentType()->getController()
        );
    }