Skip to content

Commit

Permalink
Merge pull request #2 from SteffenHeitzsch/feature/setup-service
Browse files Browse the repository at this point in the history
Create PNG with package dimensions
  • Loading branch information
SteffenHeitzsch authored Sep 23, 2024
2 parents f287ee2 + 5b4568c commit d7ef318
Show file tree
Hide file tree
Showing 17 changed files with 868 additions and 95 deletions.
4 changes: 0 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ APP_ENV=dev
APP_SECRET=df545d16301705d6aae81b5b43a7bdd0
###< symfony/framework-bundle ###

# Address to fetch delivery data
APP_GET_DELIVERY_URL=https://torquato.de
#TODO: specify!

###> knplabs/knp-snappy-bundle ###
WKHTMLTOPDF_PATH=/bin/wkhtmltopdf
WKHTMLTOIMAGE_PATH=/bin/wkhtmltoimage
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"symfony/framework-bundle": "7.1.*",
"symfony/http-client": "7.1.*",
"symfony/mime": "7.1.*",
"symfony/monolog-bundle": "^3.10",
"symfony/runtime": "7.1.*",
"symfony/twig-bundle": "7.1.*",
"symfony/yaml": "7.1.*"
Expand Down
262 changes: 261 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
];
62 changes: 62 additions & 0 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists

when@dev:
monolog:
handlers:
main:
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
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]

when@test:
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
channels: ["!event"]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

when@prod:
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
level: debug
formatter: monolog.formatter.json
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
formatter: monolog.formatter.json
4 changes: 4 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
app.zoho_url: 'https://www.zohoapis.eu/crm/v2/functions/getjobuuidforordernumber/actions/execute?auth_type=apikey&zapikey=1003.1801b849b9a8643e57d24584784da150.05c22699cb47711877f083472c6e28ff&orderNumber='
app.optipack_api:
url: 'https://optipack.leuchtturmgruppe.de/api/jobs/'
token: 'Qvf9mw7QJsxWrLUt'

services:
# default configuration for services in *this* file
Expand Down
3 changes: 0 additions & 3 deletions public/css/pdf.css

This file was deleted.

Loading

0 comments on commit d7ef318

Please sign in to comment.