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
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
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:
|
||||
# default configuration for services in *this* file
|
||||
|
@ -47,6 +52,14 @@ services:
|
|||
resource: '../src/Controller/'
|
||||
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:
|
||||
class: App\Core\Router\SiteRouteLoader
|
||||
tags: [routing.loader]
|
||||
|
@ -69,5 +82,9 @@ services:
|
|||
tags:
|
||||
- {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
|
||||
# please note that last definitions always *replace* previous ones
|
||||
|
|
Loading…
Reference in a new issue