src/View/Component/Manager.php
/**
	 * Prepares the specified component for compilation. This is done automatically when using `compile()`.
	 *
	 * @param string $componentName
	 * @return void
	 */
Prepares the specified component for compilation. This is done automatically when using `compile()`.
@param string $componentName
@return void
Prepares the specified component for compilation . This is done automatically when using ` compile () ` . @param string $componentName @return void
public function prepare($componentName) {
		$componentName = str_replace('\\', '/', $componentName);
		$this->currentlyCompiling[$componentName] = true;
		$viewName = '@component/' . $componentName;
		$absoluteFilePath = $this->getComponentPath($componentName);
		$component = $this->getComponent($absoluteFilePath);
		$this->contents[$viewName] = $component['contents'];
	}
public function prepare ( $ componentName ) { $ componentName = str_replace ( '\\' , '/' , $ componentName ) ; $ this -> currentlyCompiling [ $ componentName ] = true ; $ viewName = '@component/' . $ componentName ; $ absoluteFilePath = $ this -> getComponentPath ( $ componentName ) ; $ component = $ this -> getComponent ( $ absoluteFilePath ) ; $ this -> contents [ $ viewName ] = $ component [ 'contents' ] ; }
Prepares the specified component for compilation.
Prepares the specified component for compilation .