| 1 | <?php |
||
| 24 | class RedirectRouteManager extends BaseRedirectRouteManager |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var EntityManager |
||
| 28 | */ |
||
| 29 | protected $em; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var EntityRepository |
||
| 33 | */ |
||
| 34 | protected $repository; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $class; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor. |
||
| 43 | * |
||
| 44 | * @param EntityManager $em |
||
| 45 | * @param string $class |
||
| 46 | */ |
||
| 47 | public function __construct(EntityManager $em, $class) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function findByName($name) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function add(RedirectRouteInterface $redirectRoute, $save = false) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function remove(RedirectRouteInterface $redirectRoute, $save = false) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * {@inheritdoc} |
||
| 86 | */ |
||
| 87 | public function save() |
||
| 91 | |||
| 92 | /** |
||
| 93 | * {@inheritdoc} |
||
| 94 | */ |
||
| 95 | public function clear() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * {@inheritdoc} |
||
| 102 | */ |
||
| 103 | public function getClass() |
||
| 107 | } |
||
| 108 |