Releases: DarkGhostHunter/Preloader
Releases · DarkGhostHunter/Preloader
Added PHP 8.0 support.
Just a minor release that adds PHP 8.0 support.
Added ignoring unreadable files option.
Filters the `$PRELOAD$` phantom variable if found.
Merge pull request #43 from DarkGhostHunter/master Filters the `$PRELOAD$` phantom variable if found.
Minor QoL patch
This fixed #40, giving a more clearer error when Opcache is not enabled.
Fixes unquoted require autoload path
That's it. You should now safely your composer autoloader when use useRequire()
.
Fixed missing dependency
Mistakenly I used the Symfony Finder package as a dev dependency, meaning, it wouldn't install on any project. This version fixes it, otherwise the package won't work as intended.
Fixed appending and excluding with an empty array
As title says.
New version 2.0
Okay, a lot of changes, fixed, what not. Let's start with the drill so you don't have to read the whole README:
What's changed?
- The
memory()
method is now calledmemoryLimit()
. - The
append()
andexclude()
now accepts a directory, an array of directories, or a callable receiving the Symfony Finder instance to further manipulate the resulting files. - The
shouldRequire()
now requires the Composer Autoloader path to enable the usage ofrequire_once
and resolve links. - The
list()
has been changed togetList()
.
What's added?
- A Safe Preloader script, that registers a shutdown function to catch any preloading errors. It's inside
helpers/
.
What's removed?
- The
includePreloader()
method has been removed. The package now includes the Preloader package itself. UseselfExclude()
to exclude the Preloader package files. - The
shouldCompile()
method has been removed. The package will use compilation overrequire_once
by default. - The
generate()
method has been removed. UsewriteTo()
instead. - The
whenHits()
condition helper has been removed. Usewhen()
instead. - The
output()
method has been removed. UsewriteTo()
instead. - The
overwrite()
method has been removed. Now the resulting preloader script will be always overwritten. To disable overwrite, issuefalse
as second parameter towriteTo()
.
Fixed default method.
Also, lowered Symfony Finder version to 4-5, since the API hasn't changed too much.
New version 2.0
Basically, everything has changed. It's just better to read the Readme file.