Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 5 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
15 | class UrlAliasRepository extends EntityRepository implements UrlAliasRepositoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * @{inheritDoc} |
||
19 | */ |
||
20 | public function findOneByPublicUrl($publicUrl, $mode = UrlAlias::REWRITE) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @{inheritDoc} |
||
31 | */ |
||
32 | public function findOneByInternalUrl($internalUrl, $mode = UrlAlias::REWRITE) |
||
33 | { |
||
34 | $where = ['internal_url' => $internalUrl]; |
||
35 | if (null !== $mode) { |
||
36 | $where['mode']= $mode; |
||
37 | } |
||
38 | return $this->findOneBy($where, ['id' => 'ASC']); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @{inheritDoc} |
||
43 | */ |
||
44 | public function findAllByInternalUrl($internalUrl) |
||
49 | ); |
||
50 | } |
||
52 |