2020-04-07 17:54:18 +02:00
imports :
- { resource : Backend/DashboardWidgets.yaml }
2020-02-07 10:27:07 +01:00
services :
_defaults :
autowire : true
autoconfigure : true
public : false
DanielSiepmann\Tracking\ :
resource : '../Classes/*'
2020-04-07 17:54:18 +02:00
exclude : '../Classes/Dashboard/*'
2020-02-07 10:27:07 +01:00
2020-04-07 17:54:18 +02:00
dbconnection.tx_tracking_pageview :
class : 'TYPO3\CMS\Core\Database\Connection'
2020-02-13 12:26:43 +01:00
factory :
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getConnectionForTable'
arguments :
- 'tx_tracking_pageview'
2020-04-07 17:54:18 +02:00
querybuilder.tx_tracking_pageview :
class : 'TYPO3\CMS\Core\Database\Query\QueryBuilder'
2020-02-24 14:49:31 +01:00
factory :
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getQueryBuilderForTable'
arguments :
- 'tx_tracking_pageview'
2020-07-29 10:07:14 +02:00
dbconnection.tx_tracking_recordview :
class : 'TYPO3\CMS\Core\Database\Connection'
factory :
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getConnectionForTable'
arguments :
- 'tx_tracking_recordview'
querybuilder.tx_tracking_recordview :
class : 'TYPO3\CMS\Core\Database\Query\QueryBuilder'
factory :
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getQueryBuilderForTable'
arguments :
- 'tx_tracking_recordview'
2020-02-07 10:27:07 +01:00
DanielSiepmann\Tracking\Domain\Repository\Pageview :
public : true
arguments :
2020-04-07 17:54:18 +02:00
- '@dbconnection.tx_tracking_pageview'
2020-02-13 12:26:43 +01:00
2020-07-29 10:07:14 +02:00
DanielSiepmann\Tracking\Domain\Repository\Recordview :
public : true
arguments :
- '@dbconnection.tx_tracking_recordview'
2020-02-13 12:26:43 +01:00
DanielSiepmann\Tracking\Middleware\Pageview :
public : true
arguments :
$rule : >
not (context.getAspect("backend.user").isLoggedIn())
2020-09-28 12:48:15 +02:00
and not (context.getAspect("frontend.preview").isPreview())
2020-04-01 11:39:05 +02:00
and not (request.getHeader("User-Agent")[0] matches "/^TYPO3|TYPO3 linkvalidator/")
and not (request.getHeader("User-Agent")[0] matches "/Wget|curl|Go-http-client/")
and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot|SemrushBot|SEOkicks|Twitterbot|Seekport Crawler|SemanticScholarBot|ia_archiver|PaperLiBot|TrendsmapResolver|AhrefsBot|Nuzzel/")
2020-02-26 22:59:39 +01:00
and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")
2020-04-01 21:04:32 +02:00
2020-07-29 10:07:14 +02:00
DanielSiepmann\Tracking\Middleware\Recordview :
public : true
arguments :
$rules : [ ]
2020-04-01 21:04:32 +02:00
DanielSiepmann\Tracking\Command\UpdateDataCommand :
tags :
- name : 'console.command'
command : 'tracking:updatedata'