public function addComposer( $views, $composer ) {
		$views = array_map( function ( $view ) {
			return ViewEngine::canonical( $view );
		}, MixedType::toArray( $views ) );

		$handler = new Handler( $composer, 'compose', '\\App\\ViewComposers\\' );

		$this->composers[] = [
			'views' => $views,
			'composer' => $handler,
		];
	}
public function addComposer( $views, $composer ) {
		$views = array_map( function ( $view ) {
			return ViewEngine::canonical( $view );
		}, MixedType::toArray( $views ) );

		$handler = new Handler( $composer, 'compose', '\\App\\ViewComposers\\' );

		$this->composers[] = [
			'views' => $views,
			'composer' => $handler,
		];
	}
public function addComposer ( $ views , $ composer ) { $ views = array_map ( function ( $ view ) { return ViewEngine :: canonical ( $ view ) ; } , MixedType :: toArray ( $ views ) ) ; $ handler = new Handler ( $ composer , 'compose' , '\\App\\ViewComposers\\' ) ; $ this -> composers [ ] = [ 'views' => $ views , 'composer' => $ handler , ] ; }
Add view composer.

@param  string|array<string> $views
@param  string|Closure       $composer
@return void
Add view composer .