WIP: Implement frontend

This commit is contained in:
Björn Fromme
2023-09-18 13:10:20 +02:00
parent bfc5e5e242
commit ce97017ac4
70 changed files with 8751 additions and 337 deletions
+2
View File
@@ -12,4 +12,6 @@ return [
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
];
+3
View File
@@ -0,0 +1,3 @@
knp_menu:
twig:
template: _partials/_menu.html.twig
+18 -12
View File
@@ -1,6 +1,7 @@
monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
- deprecation
- bpn
when@dev:
monolog:
@@ -9,19 +10,17 @@ when@dev:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
channels: ["!event", "!bpn"]
bpn:
channels: ["bpn"]
type: rotating_file
path: '%kernel.logs_dir%/%kernel.environment%.bpn.log'
max_files: 5
level: info
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
channels: ["!event", "!bpn", "!doctrine", "!console"]
when@test:
monolog:
@@ -46,15 +45,22 @@ when@prod:
handler: nested
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
channels: ["!bpn"]
nested:
type: stream
path: php://stderr
level: debug
formatter: monolog.formatter.json
bpn:
channels: ["bpn"]
type: rotating_file
path: '%kernel.logs_dir%/%kernel.environment%.bpn.log'
max_files: 5
level: info
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
channels: ["!event", "!doctrine", "!bpn"]
deprecation:
type: stream
channels: [deprecation]
+14 -1
View File
@@ -29,8 +29,21 @@ services:
App\BusProNet\ApiClient:
arguments:
$logger: '@monolog.logger.bpn'
$options: { 'bpn_username': '%bpn_username%', 'bpn_password': '%bpn_password%', 'bpn_url': '%bpn_url%' }
App\BusProNet\ResponseParser:
arguments:
$options: { 'bpn_crm_id_admin': '%bpn_crm_id_admin%', 'bpn_crm_id_manager': '%bpn_crm_id_manager%', 'bpn_crm_id_teamer': '%bpn_crm_id_teamer%' }
$options: { 'bpn_crm_id_admin': '%bpn_crm_id_admin%', 'bpn_crm_id_manager': '%bpn_crm_id_manager%', 'bpn_crm_id_teamer': '%bpn_crm_id_teamer%' }
App\Twig\AppRuntime:
arguments:
$environment: '%kernel.environment%'
App\Menu\MenuBuilder:
arguments:
$factory: '@knp_menu.factory'
tags:
- name: knp_menu.menu_builder
method: createMainMenu
alias: main