Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Commit 20bc1d2

Browse files
author
fd6130
committed
remove unused class and update composer.
1 parent e87c87b commit 20bc1d2

File tree

8 files changed

+2
-352
lines changed

8 files changed

+2
-352
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ hsl-bundle provide you some nice feature that you might / might not needed:
66
* maker command for Transformers (customize your result)
77
* maker command for API CRUD Controller (boilerplate code for your need)
88
* pagination (don't need to write your own)
9-
* vich upload event listener (image resize, optimization)
10-
* lexik custom command for generate RSA keys (you don't have to remember the long command RSA)
119

1210
## Prerequisites
1311

@@ -30,30 +28,13 @@ Create `config/fd_hsl.yaml` and paste the following content:
3028
fd_hsl:
3129
paginator:
3230
default_limit: 30
33-
34-
# This is image upload listener for VichUploaderBundle.
35-
# If you don't want use this listener, just set enable to false.
36-
hsl_image_upload_listener:
37-
enable: true
38-
# Every image you upload will save as the extension you defined.
39-
# Please provide extension name without any punctuation.
40-
# null mean do nothing.
41-
save_as_extension: null
42-
quality: 90
43-
resize:
44-
enable: false
45-
# If image larger then this width (px), it will be resize.
46-
resize_when_width_exceed: 1024
47-
# Resize to width
48-
resize_to_width: 1024
4931
```
5032

5133
## Usage
5234

5335
1. [Pagination](./src/Resources/doc/pagination.md)
5436
1. [Transformer](./src/Resources/doc/transformer.md)
5537
1. [DTO and Mapper](./src/Resources/doc/dto_mapper.md)
56-
1. [File Upload](./src/Resources/doc/file_upload.md)
5738

5839

5940
## Command at a glance
@@ -78,12 +59,6 @@ API CRUD Controller (make sure you have Entity, DTO and Transformer)
7859
php bin/console make:hsl:crud
7960
```
8061

81-
Lexik RSA Keys (require LexikJWTAuthenticationBundle)
82-
83-
```
84-
php bin/console lexik:generate-keys
85-
```
86-
8762
## Credits
8863

8964
[fd6130](https://github.com/fd6130)

composer.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111
"require": {
1212
"php": "^7.2.5",
1313
"samj/fractal-bundle": "^4.0",
14-
"babdev/pagerfanta-bundle": "^2.2",
14+
"babdev/pagerfanta-bundle": "^3.0",
1515
"mark-gerarts/automapper-plus-bundle": "^1.2",
1616
"monterhealth/api-filter-bundle": "^1.2",
17-
"intervention/image": "^2.5",
18-
"symfony-bundles/json-request-bundle": "^3.0",
19-
"symfony/apache-pack": "^1.0",
20-
"vich/uploader-bundle": "^1.13"
17+
"symfony-bundles/json-request-bundle": "^4.0"
2118
},
2219
"require-dev": {
2320
"symfony/maker-bundle": "^1.0",

src/Command/LexikJWTKeyGeneratorCommand.php

Lines changed: 0 additions & 100 deletions
This file was deleted.

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,6 @@ public function getConfigTreeBuilder()
2121
->integerNode('default_limit')->defaultValue(PaginatorInterface::DEFAULT_LIMIT_VALUE)->end()
2222
->end()
2323
->end()
24-
->arrayNode('hsl_image_upload_listener')
25-
->addDefaultsIfNotSet()
26-
->children()
27-
->booleanNode('enable')->defaultFalse()->end()
28-
->scalarNode('save_as_extension')->defaultNull()->end()
29-
->integerNode('quality')->defaultValue(HslImageUploadListener::DEFAULT_QUALITY)->end()
30-
->arrayNode('resize')
31-
->addDefaultsIfNotSet()
32-
->children()
33-
->booleanNode('enable')->defaultFalse()->end()
34-
->integerNode('resize_when_width_exceed')->defaultValue(HslImageUploadListener::DEFAULT_RESIZE_WHEN_WIDTH_EXCEED)->end()
35-
->integerNode('resize_to_width')->defaultValue(HslImageUploadListener::DEFAULT_RESIZE_TO_WIDTH)->end()
36-
->end()
37-
->end()
38-
->end()
39-
->end()
4024
->end()
4125
;
4226

src/Event/Listener/HslImageUploadListener.php

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/Pagination/DoctrineQueryBuilderPagination.php

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/Pagination/PaginationManager.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)