| 1 | <?php |
||
| 13 | class NotFoundManager |
||
| 14 | { |
||
| 15 | private $class; |
||
| 16 | |||
| 17 | private $om; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $class The NotFound class name |
||
| 21 | */ |
||
| 22 | 7 | public function __construct($class, ObjectManager $om) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return NotFound |
||
| 30 | */ |
||
| 31 | 2 | public function createFromRequest(Request $request) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Deletes NotFound entities for a Redirect's path. |
||
| 47 | */ |
||
| 48 | 6 | public function removeForRedirect(Redirect $redirect) |
|
| 58 | } |
||
| 59 |