2020-02-07 10:27:07 +01:00
|
|
|
services:
|
|
|
|
_defaults:
|
|
|
|
autowire: true
|
|
|
|
autoconfigure: true
|
|
|
|
public: false
|
|
|
|
|
|
|
|
DanielSiepmann\Tracking\:
|
|
|
|
resource: '../Classes/*'
|
|
|
|
|
|
|
|
DanielSiepmann\DI\DatabaseConnection\Pageview:
|
2020-02-13 12:26:43 +01:00
|
|
|
factory:
|
|
|
|
- '@TYPO3\CMS\Core\Database\ConnectionPool'
|
|
|
|
- 'getConnectionForTable'
|
|
|
|
arguments:
|
|
|
|
- 'tx_tracking_pageview'
|
2020-02-07 10:27:07 +01:00
|
|
|
|
|
|
|
DanielSiepmann\Tracking\Domain\Repository\Pageview:
|
|
|
|
public: true
|
|
|
|
arguments:
|
2020-02-13 12:26:43 +01:00
|
|
|
- '@DanielSiepmann\DI\DatabaseConnection\Pageview'
|
|
|
|
|
|
|
|
DanielSiepmann\Tracking\Middleware\Pageview:
|
|
|
|
public: true
|
|
|
|
arguments:
|
|
|
|
$rule: >
|
|
|
|
not (context.getAspect("backend.user").isLoggedIn())
|
|
|
|
and not (request.getHeader("User-Agent")[0] matches "/^Wget/")
|
|
|
|
and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot/")
|