Routing/Loader/Reader/RestActionReader.php 1 location
|
@@ 381-387 (lines=7) @@
|
378 |
|
*/ |
379 |
|
private function includeFormatIfNeeded(&$path, &$requirements) |
380 |
|
{ |
381 |
|
if ($this->includeFormat === true) { |
382 |
|
$path .= '.{_format}'; |
383 |
|
|
384 |
|
if (!isset($requirements['_format']) && !empty($this->formats)) { |
385 |
|
$requirements['_format'] = implode('|', array_keys($this->formats)); |
386 |
|
} |
387 |
|
} |
388 |
|
} |
389 |
|
|
390 |
|
/** |
Routing/Loader/RestYamlCollectionLoader.php 1 location
|
@@ 126-128 (lines=3) @@
|
123 |
|
} |
124 |
|
|
125 |
|
// set format requirement if configured globally |
126 |
|
if (!isset($config['requirements']['_format']) && !empty($this->formats)) { |
127 |
|
$config['requirements']['_format'] = implode('|', array_keys($this->formats)); |
128 |
|
} |
129 |
|
} |
130 |
|
|
131 |
|
// set the default format if configured |