Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#syntax=docker/dockerfile:1.14
#syntax=docker/dockerfile:1

# Adapted from https://github.com/api-platform/api-platform/blob/fa1c5808305d7cadbf7b8392e0fddb6e80fb2092/api/Dockerfile

Expand Down
2 changes: 2 additions & 0 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*",
"symfony/polyfill-php83": "*",
"symfony/polyfill-php82": "*",
"symfony/polyfill-php81": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php74": "*",
Expand Down
279 changes: 102 additions & 177 deletions api/composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions api/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ doctrine:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
naming_strategy: App\Util\CamelPascalNamingStrategy
identity_generation_preferences:
Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
auto_mapping: true
report_fields_where_declared: true
validate_xml_mapping: false
Expand Down
4 changes: 0 additions & 4 deletions api/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
annotations: false
http_method_override: false
handle_all_throwables: true
trusted_proxies: '%env(TRUSTED_PROXIES)%'
trusted_hosts:
- localhost
Expand All @@ -19,8 +17,6 @@ framework:

#esi: true
#fragments: true
php_errors:
log: true

when@test:
framework:
Expand Down
2 changes: 0 additions & 2 deletions api/config/packages/validator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
framework:
validation:
email_validation_mode: html5

# Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
auto_mapping:
Expand Down
22 changes: 1 addition & 21 deletions api/docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
{$FRANKENPHP_CONFIG}
}

# https://caddyserver.com/docs/caddyfile/directives#sorting-algorithm
order php_server before file_server

http_port 3001
https_port 3443
auto_https off
Expand All @@ -33,24 +30,7 @@

root * /app/public

encode {
zstd
br
gzip

match {
header Content-Type text/*
header Content-Type application/json*
header Content-Type application/javascript*
header Content-Type application/xhtml+xml*
header Content-Type application/atom+xml*
header Content-Type application/rss+xml*
header Content-Type image/svg+xml*
# Custom formats supported
header Content-Type application/ld+json*
header Content-Type application/hal+json*
}
}
encode zstd br gzip

# Add links to the API docs if not set explicitly (e.g. the PWA)
header ?Link `</docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"`
Expand Down
4 changes: 2 additions & 2 deletions api/tests/HttpCache/PurgeHttpCacheListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function setUp(): void {
$this->uowProphecy = $this->prophesize(UnitOfWork::class);

$this->emProphecy = $this->prophesize(EntityManagerInterface::class);
$this->emProphecy->detach(Argument::any())->willReturn();
$this->emProphecy->detach(Argument::any());
$this->emProphecy->getUnitOfWork()->willReturn($this->uowProphecy->reveal());

$classMetadataProphecy = $this->prophesize(ClassMetadata::class);
Expand Down Expand Up @@ -177,7 +177,7 @@ public function testOnFlush(): void {

$emProphecy = $this->prophesize(EntityManagerInterface::class);
$emProphecy->getUnitOfWork()->willReturn($uowMock)->shouldBeCalled();
$emProphecy->detach(Argument::any())->willReturn();
$emProphecy->detach(Argument::any());
$dummyClassMetadata = new ClassMetadata(Dummy::class);
$dummyClassMetadata->mapManyToOne(['fieldName' => 'relatedDummy', 'targetEntity' => RelatedDummy::class, 'inversedBy' => 'dummies']);
$dummyClassMetadata->mapOneToOne(['fieldName' => 'relatedOwningDummy', 'targetEntity' => RelatedOwningDummy::class, 'inversedBy' => 'ownedDummy']);
Expand Down
Loading