Private/Polyfony/Route.php
public function setDestination(string $merged_destination) :self {
		// explode the parameters
		list($this->bundle, $this->controller, $this->action) = 
			explode('/', str_replace('@', '/',$merged_destination));
		// if the action is an url parameter
		if(Route\Helper::isThisAParameterName($this->action)) {
			// we have an action triggered by an url parameter, remove special chars, and set the trigger
			$this->trigger = trim($this->action, '{}');
			// action is not known yet
			$this->action = null;
		}
		// build route segments tp ease the job of the router later on
		$this->buildSegments();
		// return the route
		return $this;
	}
public function setDestination(string $merged_destination) :self {
		// explode the parameters
		list($this->bundle, $this->controller, $this->action) = 
			explode('/', str_replace('@', '/',$merged_destination));
		// if the action is an url parameter
		if(Route\Helper::isThisAParameterName($this->action)) {
			// we have an action triggered by an url parameter, remove special chars, and set the trigger
			$this->trigger = trim($this->action, '{}');
			// action is not known yet
			$this->action = null;
		}
		// build route segments tp ease the job of the router later on
		$this->buildSegments();
		// return the route
		return $this;
	}
public function setDestination ( string $ merged_destination ) : self { // explode the parameters list ( $ this -> bundle , $ this -> controller , $ this -> action ) = explode ( '/' , str_replace ( '@' , '/' , $ merged_destination ) ) ; // if the action is an url parameter if ( Route \ Helper :: isThisAParameterName ( $ this -> action ) ) { // we have an action triggered by an url parameter, remove special chars, and set the trigger $ this -> trigger = trim ( $ this -> action , '{}' ) ; // action is not known yet $ this -> action = null ; } // build route segments tp ease the job of the router later on $ this -> buildSegments ( ) ; // return the route return $ this ; }
shortcut for destination
shortcut for destination