• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/configurator.php
  • Класс: BitrixMainEngineConfigurator
  • Вызов: Configurator::checkReflectionMethodAsAction
private function checkReflectionMethodAsAction(ReflectionMethod $reflectionMethod, array $annotations = null)
{
	if (!$reflectionMethod->isPublic())
	{
		return false;
	}

	if ($annotations === null)
	{
		$annotationReader = new AnnotationReader();
		$annotations = $annotationReader->getMethodAnnotations($reflectionMethod);
	}

	if (!is_array($annotations) || !array_key_exists('Action', $annotations))
	{
		return false;
	}

	return true;
}