Skip to content

Commit ac9c1f6

Browse files
elidrissidevfballiano
authored andcommitted
Added optimize to composer autoloader (#3081)
1 parent 0eff695 commit ac9c1f6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
- name: Composer install
4242
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* --no-dev
4343

44+
- name: Optimize autoloader
45+
run: composer dump-autoload --optimize
46+
4447
- name: Create ZIP file
4548
run: zip -rq openmage-${{ github.event.release.tag_name }}.zip . -x '.git/*'
4649

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ composer require "openmage/magento-lts":"1.9.4.x-dev"
115115
composer require "openmage/magento-lts":"20.0.x-dev"
116116
```
117117

118+
When deploying to a production environment, it's recommended to optimize Composer's autoloader to speed up classes lookup time:
119+
120+
```bash
121+
composer dump-autoload --optimize
122+
```
123+
118124
### Git
119125

120126
If you want to contribute to the project:

0 commit comments

Comments
 (0)