add influxdb and stat of page view
This commit is contained in:
parent
f81e2a99a7
commit
a9fe3c488f
|
@ -4,6 +4,11 @@
|
||||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||||
parameters:
|
parameters:
|
||||||
|
influxdb_url: '%env(INFLUXDB_URL)%'
|
||||||
|
influxdb_token: '%env(INFLUXDB_TOKEN)%'
|
||||||
|
influxdb_bucket: '%env(INFLUXDB_BUCKET)%'
|
||||||
|
influxdb_org: '%env(INFLUXDB_ORG)%'
|
||||||
|
influxdb_debug: '%env(INFLUXDB_DEBUG)%'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# default configuration for services in *this* file
|
# default configuration for services in *this* file
|
||||||
|
@ -47,6 +52,14 @@ services:
|
||||||
resource: '../src/Controller/'
|
resource: '../src/Controller/'
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
|
App\Api\InfluxDB:
|
||||||
|
arguments:
|
||||||
|
$url: '%influxdb_url%'
|
||||||
|
$token: '%influxdb_token%'
|
||||||
|
$bucket: '%influxdb_bucket%'
|
||||||
|
$org: '%influxdb_org%'
|
||||||
|
$debug: '%influxdb_debug%'
|
||||||
|
|
||||||
site.route_loader:
|
site.route_loader:
|
||||||
class: App\Core\Router\SiteRouteLoader
|
class: App\Core\Router\SiteRouteLoader
|
||||||
tags: [routing.loader]
|
tags: [routing.loader]
|
||||||
|
@ -69,5 +82,9 @@ services:
|
||||||
tags:
|
tags:
|
||||||
- {name: markdown.parser, alias: comment}
|
- {name: markdown.parser, alias: comment}
|
||||||
|
|
||||||
|
App\EventListener\StatListener:
|
||||||
|
tags:
|
||||||
|
- { name: kernel.event_listener, event: kernel.request }
|
||||||
|
|
||||||
# add more service definitions when explicit configuration is needed
|
# add more service definitions when explicit configuration is needed
|
||||||
# please note that last definitions always *replace* previous ones
|
# please note that last definitions always *replace* previous ones
|
||||||
|
|
Loading…
Reference in a new issue