Skip to content

Commit

Permalink
Merge pull request #3 from pn-neutrino/0.1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Ark4ne authored May 29, 2017
2 parents 314f0ec + 6362c12 commit 629924d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,22 @@ $composerOptimizer->optimizeProcess();
Process optimizer use composer dumpautoload with " --optimize ".

This allows to load the autoload with the link each used.
This generates a huge array that will accelerate the loading process of the class.
This generates a huge array that will accelerate the loading process of the class.

## Autoload :

In your bootstrap file, Change your call of composer/autoload.php by :

```php
// Load compiled autoloader. (Phalcon)
if (file_exists("{path to optimized loader file}")) {
require "{path to optimized loader file}";

return;
}

/**
* Load composer autoloader.
*/
require "{path to vendor/composer/autoload.php}"
```

0 comments on commit 629924d

Please sign in to comment.