- move NodeView to Analytic/View
- move NodeViewListener to AnalyticListener - add referer
This commit is contained in:
parent
58c8b6126e
commit
ec4b3341c8
17 changed files with 393 additions and 116 deletions
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Core\Repository;
|
||||
|
||||
use App\Core\Repository\NodeViewRepository as Repository;
|
||||
use Knp\Component\Pager\PaginatorInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class NodeViewRepositoryQuery extends RepositoryQuery
|
||||
{
|
||||
public function __construct(Repository $repository, PaginatorInterface $paginator)
|
||||
{
|
||||
parent::__construct($repository, 'n', $paginator);
|
||||
}
|
||||
|
||||
public function filterByRequest(Request $request)
|
||||
{
|
||||
return $this
|
||||
->andWhere('.node = :node')
|
||||
->andWhere('.path = :path')
|
||||
->setParameters([
|
||||
':node' => $request->attributes->get('_node'),
|
||||
':path' => $request->getPathInfo(),
|
||||
])
|
||||
;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue