Neos\Flow\Mvc\Routing\Route::setLowerCase PHP Method

setLowerCase() public method

This setting can be overwritten for all dynamic Route parts.
public setLowerCase ( boolean $lowerCase ) : void
$lowerCase boolean TRUE: Route parts are converted to lower case by default. FALSE: Route parts are not altered.
return void
    public function setLowerCase($lowerCase)
    {
        $this->lowerCase = (bool) $lowerCase;
    }

Usage Example

 /**
  * @test
  */
 public function resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse()
 {
     $this->route->setUriPattern('CamelCase/{someKey}');
     $this->route->setLowerCase(false);
     $this->routeValues = ['someKey' => 'CamelCase'];
     $this->assertTrue($this->route->resolves($this->routeValues));
     $this->assertEquals('CamelCase/CamelCase', $this->route->getResolvedUriPath());
 }
All Usage Examples Of Neos\Flow\Mvc\Routing\Route::setLowerCase