Skip to content

Commit 640ed02

Browse files
committed
Merge branch 'release/1.4.0'
2 parents b5664e5 + de9ecdb commit 640ed02

19 files changed

+310
-55
lines changed

.github/workflows/php_upgrade.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -51,44 +51,6 @@ jobs:
5151
- name: Normalize composer files
5252
run: composer normalize --dry-run
5353

54-
php-cs-fixer:
55-
runs-on: ubuntu-latest
56-
strategy:
57-
fail-fast: false
58-
matrix:
59-
php: ["8.2"]
60-
name: PHP Coding Standards Fixer (PHP ${{ matrix.php }})
61-
steps:
62-
- name: Checkout
63-
uses: actions/checkout@v3
64-
65-
- name: Setup PHP, with composer and extensions
66-
uses: shivammathur/setup-php@v2
67-
with:
68-
php-version: ${{ matrix.php}}
69-
extensions: apcu, ctype, iconv, imagick, json, redis, soap, xmlreader, zip
70-
coverage: none
71-
72-
- name: Get composer cache directory
73-
id: composer-cache
74-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
75-
76-
- name: Cache composer dependencies
77-
uses: actions/cache@v3
78-
with:
79-
path: ${{ steps.composer-cache.outputs.dir }}
80-
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
81-
restore-keys: ${{ matrix.php }}-composer-
82-
83-
- name: Update Dependencies
84-
run: composer update --ignore-platform-reqs
85-
86-
- name: Install Dependencies
87-
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --ignore-platform-reqs
88-
89-
- name: php-cs-fixer
90-
run: PHP_CS_FIXER_IGNORE_ENV=true phpdbg -qrr ./vendor/bin/php-cs-fixer fix --dry-run
91-
9254
phpunit:
9355
runs-on: ubuntu-latest
9456
services:

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
node_modules
1717

1818
public/media/*
19+
!public/media/thumbnail_video.png
20+
!public/media/thumbnail_other.png
1921

2022
###> phpunit/phpunit ###
2123
/phpunit.xml
@@ -31,3 +33,7 @@ launch.json
3133

3234
# Allow local docker-compose overrides
3335
docker-compose.override.yml
36+
37+
###> liip/imagine-bundle ###
38+
/public/media/cache/
39+
###< liip/imagine-bundle ###

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.4.0] - 2023-09-14
8+
- [#160](https://github.com/os2display/display-api-service/pull/160)
9+
Added app:feed:list-feed-source command. Removed listing from app:feed:remove-feed-source command.
10+
- [#159](https://github.com/os2display/display-api-service/pull/159)
11+
Fixed sprintf issue.
12+
- [#158](https://github.com/os2display/display-api-service/pull/158)
13+
Added thumbnails for image resources
14+
715
## [1.3.2] - 2023-07-11
816
- [#157](https://github.com/os2display/display-api-service/pull/157)
917
Fix question input on create user command

composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"php": ">=8.0",
88
"ext-ctype": "*",
99
"ext-fileinfo": "*",
10+
"ext-gd": "*",
1011
"ext-iconv": "*",
1112
"api-platform/core": "2.6.*",
1213
"composer/package-versions-deprecated": "^1.11",
@@ -20,6 +21,7 @@
2021
"justinrainbow/json-schema": "^5.2",
2122
"kubawerlos/php-cs-fixer-custom-fixers": "^3.11",
2223
"lexik/jwt-authentication-bundle": "^2.14",
24+
"liip/imagine-bundle": "^2.11",
2325
"nelmio/cors-bundle": "^2.1",
2426
"phpdocumentor/reflection-docblock": "^5.2",
2527
"rlanvin/php-rrule": "^2.2",
@@ -122,6 +124,10 @@
122124
"fixtures-load": [
123125
"bin/console hautelook:fixtures:load --no-interaction"
124126
],
127+
"prepare-code": [
128+
"@coding-standards-apply",
129+
"@tests"
130+
],
125131
"tests": [
126132
"bin/console --env=test doctrine:database:drop --if-exists --force --quiet",
127133
"bin/console --env=test doctrine:database:create --no-interaction --if-not-exists --quiet",

composer.lock

Lines changed: 167 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
ItkDev\OpenIdConnectBundle\ItkDevOpenIdConnectBundle::class => ['all' => true],
2020
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
2121
Gesdinet\JWTRefreshTokenBundle\GesdinetJWTRefreshTokenBundle::class => ['all' => true],
22+
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
2223
];

config/packages/liip_imagine.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Documentation on how to configure the bundle can be found at: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
2+
liip_imagine:
3+
# valid drivers options include "gd" or "gmagick" or "imagick"
4+
driver: "gd"
5+
6+
resolvers:
7+
default:
8+
web_path: ~
9+
10+
filter_sets:
11+
cache: ~
12+
13+
thumbnail:
14+
quality: 75
15+
filters:
16+
scale:
17+
# Max 400 width, 400 height.
18+
dim: [ 400, 400 ]

config/routes/liip_imagine.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_liip_imagine:
2+
resource: "@LiipImagineBundle/Resources/config/routing.yaml"

public/api-spec-v1.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6852,6 +6852,10 @@
68526852
"items": {
68536853
"type": "string"
68546854
}
6855+
},
6856+
"thumbnail": {
6857+
"type": "string",
6858+
"nullable": true
68556859
}
68566860
}
68576861
},
@@ -6925,6 +6929,10 @@
69256929
"items": {
69266930
"type": "string"
69276931
}
6932+
},
6933+
"thumbnail": {
6934+
"type": "string",
6935+
"nullable": true
69286936
}
69296937
}
69306938
},

public/api-spec-v1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4887,6 +4887,9 @@ components:
48874887
type: array
48884888
items:
48894889
type: string
4890+
thumbnail:
4891+
type: string
4892+
nullable: true
48904893
Media.Media.jsonld:
48914894
type: object
48924895
description: ''
@@ -4936,6 +4939,9 @@ components:
49364939
type: array
49374940
items:
49384941
type: string
4942+
thumbnail:
4943+
type: string
4944+
nullable: true
49394945
Playlist.Playlist:
49404946
type: object
49414947
description: ''

public/media/thumbnail_other.png

7.25 KB
Loading

public/media/thumbnail_video.png

8.15 KB
Loading

0 commit comments

Comments
 (0)