wip: initial commit
This commit is contained in:
+1
-2
@@ -7,10 +7,9 @@ return [
|
||||
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
|
||||
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
|
||||
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
|
||||
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
monolog:
|
||||
channels:
|
||||
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
|
||||
- bpn
|
||||
|
||||
when@dev:
|
||||
monolog:
|
||||
@@ -10,6 +11,11 @@ when@dev:
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
channels: ["!event"]
|
||||
bpn:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.bpn.log"
|
||||
level: debug
|
||||
channels: ["bpn"]
|
||||
# uncomment to get logging in your browser
|
||||
# you may have to allow bigger header sizes in your Web server configuration
|
||||
#firephp:
|
||||
@@ -46,6 +52,11 @@ when@prod:
|
||||
handler: nested
|
||||
excluded_http_codes: [404, 405]
|
||||
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
|
||||
bpn:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.bpn.log"
|
||||
level: debug
|
||||
channels: ["bpn"]
|
||||
nested:
|
||||
type: stream
|
||||
path: php://stderr
|
||||
|
||||
@@ -4,20 +4,25 @@ security:
|
||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
||||
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
|
||||
providers:
|
||||
users_in_memory: { memory: null }
|
||||
bpn_user_provider:
|
||||
id: App\BusProNet\Security\UserProvider
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
main:
|
||||
lazy: true
|
||||
provider: users_in_memory
|
||||
|
||||
# activate different ways to authenticate
|
||||
# https://symfony.com/doc/current/security.html#the-firewall
|
||||
|
||||
# https://symfony.com/doc/current/security/impersonating_user.html
|
||||
# switch_user: true
|
||||
provider: bpn_user_provider
|
||||
custom_authenticator:
|
||||
App\BusProNet\Security\Authenticator
|
||||
logout:
|
||||
path: app_logout
|
||||
target: app_login
|
||||
remember_me:
|
||||
secret: '%kernel.secret%'
|
||||
lifetime: 604800
|
||||
token_provider:
|
||||
doctrine: true
|
||||
|
||||
# Easy way to control access for large sections of your site
|
||||
# Note: Only the *first* access control that matches will be used
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
framework:
|
||||
default_locale: en
|
||||
default_locale: de
|
||||
translator:
|
||||
default_path: '%kernel.project_dir%/translations'
|
||||
fallbacks:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
twig:
|
||||
file_name_pattern: '*.twig'
|
||||
form_themes: ['forms.html.twig']
|
||||
|
||||
when@test:
|
||||
twig:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
framework:
|
||||
uid:
|
||||
default_uuid_version: 7
|
||||
time_based_uuid_version: 7
|
||||
+16
-2
@@ -20,5 +20,19 @@ services:
|
||||
- '../src/Entity/'
|
||||
- '../src/Kernel.php'
|
||||
|
||||
# add more service definitions when explicit configuration is needed
|
||||
# please note that last definitions always *replace* previous ones
|
||||
App\BusProNet\ApiClient:
|
||||
arguments:
|
||||
$logger: '@monolog.logger.bpn'
|
||||
$options:
|
||||
bpn_username: '%env(APP_BPN_USER)%'
|
||||
bpn_password: '%env(APP_BPN_PASSWORD)%'
|
||||
bpn_url: '%env(APP_BPN_ENDPOINT)%'
|
||||
debug: '%env(bool:APP_BPN_DEBUG)%'
|
||||
|
||||
App\BusProNet\DataLoader\TravelDataLoader:
|
||||
arguments:
|
||||
$xmlPath: '%kernel.project_dir%/var/xmlexport'
|
||||
|
||||
App\BusProNet\DataLoader\PickupDataLoader:
|
||||
arguments:
|
||||
$xmlPath: '%kernel.project_dir%/var/xmlexport'
|
||||
Reference in New Issue
Block a user