Skip to content

Commit

Permalink
Added optimize to composer autoloader (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Mar 13, 2023
1 parent eeba35f commit 1e8fcd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Composer install
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* --no-dev

- name: Optimize autoloader
run: composer dump-autoload --optimize

- name: Create ZIP file
run: zip -rq openmage-${{ github.event.release.tag_name }}.zip . -x '.git/*'

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ composer require "openmage/magento-lts":"1.9.4.x-dev"
composer require "openmage/magento-lts":"20.0.x-dev"
```

When deploying to a production environment, it's recommended to optimize Composer's autoloader to speed up classes lookup time:

```bash
composer dump-autoload --optimize
```

### Git

If you want to contribute to the project:
Expand Down

0 comments on commit 1e8fcd0

Please sign in to comment.