src/Fixture/Factory/RouteExampleFactory.php 1 location
|
@@ 57-67 (lines=11) @@
|
| 54 |
|
/** |
| 55 |
|
* {@inheritdoc} |
| 56 |
|
*/ |
| 57 |
|
public function create(array $options = []) |
| 58 |
|
{ |
| 59 |
|
$options = $this->optionsResolver->resolve($options); |
| 60 |
|
|
| 61 |
|
/** @var Route $route */ |
| 62 |
|
$route = $this->routeFactory->createNew(); |
| 63 |
|
$route->setName($options['name']); |
| 64 |
|
$route->setContent($options['content']); |
| 65 |
|
|
| 66 |
|
return $route; |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|
src/Fixture/Factory/StringBlockExampleFactory.php 1 location
|
@@ 54-64 (lines=11) @@
|
| 51 |
|
/** |
| 52 |
|
* {@inheritdoc} |
| 53 |
|
*/ |
| 54 |
|
public function create(array $options = []) |
| 55 |
|
{ |
| 56 |
|
$options = $this->optionsResolver->resolve($options); |
| 57 |
|
|
| 58 |
|
/** @var StringBlock $stringBlock */ |
| 59 |
|
$stringBlock = $this->factory->createNew(); |
| 60 |
|
$stringBlock->setName($options['name']); |
| 61 |
|
$stringBlock->setBody($options['body']); |
| 62 |
|
|
| 63 |
|
return $stringBlock; |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|