src/mako/view/ViewFactory.php
public function autoAssign($view, callable $variables): ViewFactory
	{
		foreach((array) $view as $name)
		{
			$this->autoAssignVariables[$name] = $variables;
		}

		return $this;
	}
public function autoAssign($view, callable $variables): ViewFactory
	{
		foreach((array) $view as $name)
		{
			$this->autoAssignVariables[$name] = $variables;
		}

		return $this;
	}
public function autoAssign ( $ view , callable $ variables ) : ViewFactory { foreach ( ( array ) $ view as $ name ) { $ this -> autoAssignVariables [ $ name ] = $ variables ; } return $ this ; }
Assign variables that should be auto assigned to views upon creation.

@param  string                 $view      View name or array of view names
@param  callable               $variables Callable that returns an array of variables
@return \mako\view\ViewFactory
Assign variables that should be auto assigned to views upon creation .