Register a view composer to current theme.

@param string|array    $views
@param string|callable $callback
@param int|null        $priority
439550
public function composer($views, $callback, $priority = null)
    {
        $theViews = [];

        foreach ((array) $views as $view) {
            $theViews[] = $this->getThemeNamespace($view);
        }

        $this->views->composer($theViews, $callback, $priority);
    }
316849
public function composeShow(View $view)
    {
        $this->composeWithTitle($view);
        $this->composeWithLayout($view);
        $this->composeWithAllRouteNames($view);
        $this->composeWithPartialsLocation($view);
        $this->composeWithResourceLocation($view);
    }
1167982
public static function wpEnqueueScripts( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'wp_enqueue_scripts', $callback, $priority, $accepted_args );
	}
303112
public static function init( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'init', $callback, $priority, $accepted_args );
	}
675382
public static function adminInit( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'admin_init', $callback, $priority, $accepted_args );
	}
762200
public static function adminNotices( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'admin_notices', $callback, $priority, $accepted_args );
	}
118772
public function registerAssetFiles( $view ) {

		parent::registerAssetFiles( $view );

		// FB App Id
		$appId = FacebookProperties::getInstance()->getAppId();

		// FB SDK Script
		$script = "
			window.fbAsyncInit = function() {
			  FB.init({
				appId            : '$appId',
				autoLogAppEvents : true,
				xfbml            : true,
				version          : 'v3.0'
			  });
			};

			(function(d, s, id){
			   var js, fjs = d.getElementsByTagName(s)[0];
			   if (d.getElementById(id)) {return;}
			   js = d.createElement(s); js.id = id;
			   js.src = \"https://connect.facebook.net/en_US/sdk.js\";
			   fjs.parentNode.insertBefore(js, fjs);
			 }(document, 'script', 'facebook-jssdk'));";

		$view->registerJs( $script, View::POS_HEAD );
	}
1258705
protected function addEventListener($name, $callback, $priority, $accepted_args)
    {
        $this->hooks[$name] = [$callback, $priority, $accepted_args];
        $this->addAction($name, $callback, $priority, $accepted_args);
    }
807271
public function attach(EventManagerInterface $events, $priority = PHP_INT_MAX)
    {
        $this->listeners[] = $events->attach(
            Application::EVENT_PRE_BOOTSTRAP,
            [
                $this,
                'onBootstrapLoadConfig'
            ],
            $priority - 1
        );
    }
396037
protected function addAction($name, $callback, $priority, $accepted_args)
    {
        add_action($name, $callback, $priority, $accepted_args);
    }
16748
public static function addView(string $view, array $data): void
    {
        if (self::$debugbar instanceof StandardDebugBar) {
            $collector = self::$debugbar->getCollector('views');

            if ($collector instanceof ViewCollector) {
                $collector->addView($view, $data);
            }
        }
    }
399942
public static function adminMenu( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'admin_menu', $callback, $priority, $accepted_args );
	}
614360
public static function parseRequest( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'parse_request', $callback, $priority, $accepted_args );
	}
1088050
public static function userRegister( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'user_register', $callback, $priority, $accepted_args );
	}
1050178
protected function reset_composer( View $view ) {
		$view_name = $view->get_name();

		if ( isset( $this->composers[$view_name] ) ) {
			unset( $this->composers[$view_name] );
		}
	}
494955
private function addViewProvider(&$property, $viewProvider, $priority)
    {
        $priority = (int)$priority;
        if (!isset($property[$priority])) {
            $property[$priority] = array();
        }

        $property[$priority][] = $viewProvider;
    }
595960
public static function wpHead( $callback, $priority = null, $accepted_args = null ) {
		self::action( 'wp_head', $callback, $priority, $accepted_args );
	}