Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ DEFAULT_URI=http://localhost
###> app ###
APP_BROKER_BASE_URI=http://scorpio.local:9090/

# JSON-LD contexts attached to every entity, outermost last so the ETSI core
# context resolves the NGSI-LD terms and the domain context resolves the
# Smart Data Models ones.
ENTER_NGSI_CONTEXT_URLS='https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld'
# A (JSON) list of JSON-LD contexts attached to every entity, outermost last so the
# ETSI core context resolves the NGSI-LD terms and the domain context resolves
# the Smart Data Models ones.
APP_NGSI_CONTEXT_URLS='[
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
]'
###< app ###
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* [PR-9](https://github.com/itk-dev/enter/pull/9)
Refactored source import
* [PR-7](https://github.com/itk-dev/enter/pull/7)
Refactored source definition
* [#3](https://github.com/itk-dev/enter/pull/3)
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"symfony/flex": "^2",
"symfony/framework-bundle": "~8.1.6",
"symfony/http-client": "~8.1.6",
"symfony/monolog-bundle": "^4.0",
"symfony/property-access": "~8.1.0",
"symfony/property-info": "~8.1.6",
"symfony/runtime": "~8.1.0",
Expand Down
264 changes: 263 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 @@ -7,4 +7,5 @@
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
];
55 changes: 55 additions & 0 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
monolog:
channels: # To see all channels, run bin/console debug:autowiring logger
- 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']
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]
channels: ['!deprecation']
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
Loading