Skip to content

Commit

Permalink
Add Glide bundle configuration files (#1638)
Browse files Browse the repository at this point in the history
* Add Glide bundle configuration files

Added a manifest.json and a dahromy_glide.yaml to configure the Glide bundle in Symfony. The manifest.json includes the bundle and its environment-specific parameters, while the dahromy_glide.yaml sets up source, cache locations and the glide signature key.

* Add 'gd' driver to dahromy_glide configuration

The gd library driver has been added to the dahromy_glide.yaml configuration file. This change enables image processing capabilities provided by the gd library in the dahromy/glide-symfony project.

* Add base_url to glide configuration

In the dahromy_glide.yaml configuration file, a new line specifying the base_url for image storage has been added. This amendment allows the glide library to know where to store and retrieve images.

* Add newline at the end of glide.yaml file

A newline has been added at the end of the dahromy_glide.yaml file. This is in accordance with standard coding practices and helps to prevent any potential parsing errors due to the absence of a newline.

* Remove 'gd' driver and base_url from glide config

The 'gd' driver and the 'base_url' configuration option have been removed from the Glide configuration. Other default configuration options can be added as needed. This change simplifies the default configuration.

* Move manifest and config files to 1.0 directory

All manifest and config files have been moved to a newly created 1.0 directory. This change is to improve file organization and version control. The structure change does not bring any functionality differences.

* Add PHP version conflict in manifest.json

The update adds a "conflict" field to the manifest.json which restricts the usage of the package with PHP versions less than 8.0. This ensures that the application is run on the supported PHP versions, preventing any compatibility issues.
  • Loading branch information
dahromy authored Jul 10, 2024
1 parent 35f85ae commit 0d6dd55
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dahromy/glide-symfony/1.0/config/packages/dahromy_glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dahromy_glide:
source: '%kernel.project_dir%/public/uploads'
cache: '%kernel.project_dir%/var/cache/glide'
signature_key: '%env(GLIDE_SIGNATURE_KEY)%'
# Add other default configuration options as needed

14 changes: 14 additions & 0 deletions dahromy/glide-symfony/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"conflict": {
"php": "<8.0"
},
"bundles": {
"DahRomy\\Glide\\DahRomyGlideBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%"
},
"env": {
"GLIDE_SIGNATURE_KEY": "%generate(secret)%"
}
}

0 comments on commit 0d6dd55

Please sign in to comment.