tracking/Configuration/Services.yaml

47 lines
1.5 KiB
YAML
Raw Normal View History

services:
_defaults:
autowire: true
autoconfigure: true
public: false
DanielSiepmann\Tracking\:
resource: '../Classes/*'
DanielSiepmann\DI\DatabaseConnection\Pageview:
factory:
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getConnectionForTable'
arguments:
- 'tx_tracking_pageview'
DanielSiepmann\Tracking\Domain\Repository\Pageview:
public: true
arguments:
- '@DanielSiepmann\DI\DatabaseConnection\Pageview'
DanielSiepmann\Tracking\Middleware\Pageview:
public: true
arguments:
$rule: >
not (context.getAspect("backend.user").isLoggedIn())
2020-02-19 09:19:26 +01:00
and not (request.getHeader("User-Agent")[0] matches "/^Wget|TYPO3|TYPO3 linkvalidator/")
and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot/")
2020-02-23 22:41:41 +01:00
# Dashboard Widgets
DanielSiepmann\Tracking\Dashboard\Widgets\PageViewsBar:
class: DanielSiepmann\Tracking\Dashboard\Widgets\PageViewsBar
arguments: [pageViewsBar]
tags:
- name: dashboard.widget
identifier: pageViewsBar
widgetGroups: tracking
DanielSiepmann\Tracking\Dashboard\Widgets\PageViewsPerPageDoughnut:
class: DanielSiepmann\Tracking\Dashboard\Widgets\PageViewsPerPageDoughnut
arguments: [pageViewsPerPageDoughnut]
tags:
- name: dashboard.widget
identifier: pageViewsPerPageDoughnut
widgetGroups: tracking