Neos\Flow\Mvc\Routing\DynamicRoutePart::setSplitString PHP Method

setSplitString() public method

Sets split string of the Route Part.
public setSplitString ( string $splitString ) : void
$splitString string
return void
    public function setSplitString($splitString)
    {
        $this->splitString = $splitString;
    }

Usage Example

 /**
  * @test
  */
 public function dynamicRoutePartMatchesIfSplitStringContainsMultipleCharactersThatAreFoundInRequestPath()
 {
     $this->dynamicRoutPart->setName('foo');
     $this->dynamicRoutPart->setSplitString('_-_');
     $routePath = 'foo_-_bar';
     $this->assertTrue($this->dynamicRoutPart->match($routePath), 'Dynamic Route Part with a split string of "_-_" should match request path of "foo_-_bar".');
 }