Handles 2 types of patterns to be used in an URL: - {foo} matches anything but a slash and is used to match the typical URL variable (e.g. an ID) - {&foo} matches the slash, too, and is used to match only those URL variables, which may have a slash
Наследование: implements eZ\Publish\Core\REST\Common\RequestParser
 /**
  * Test generating URL with extra value
  *
  * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
  * @expectedExceptionMessage Unused values in values array: 'bar'.
  */
 public function testGenerateSuperfluousValue()
 {
     $urlHandler = new Common\RequestParser\Pattern(array('pattern' => '/foo/{foo}'));
     $urlHandler->generate('pattern', array('foo' => 23, 'bar' => 42));
 }