Skip to content

Releases: DarkGhostHunter/Preloader

Added PHP 8.0 support.

17 Mar 02:15
674b9b7
Compare
Choose a tag to compare

Just a minor release that adds PHP 8.0 support.

Added ignoring unreadable files option.

07 Jul 23:32
19829a8
Compare
Choose a tag to compare

Filters the `$PRELOAD$` phantom variable if found.

07 Jul 22:52
c86cb1e
Compare
Choose a tag to compare
Merge pull request #43 from DarkGhostHunter/master

Filters the `$PRELOAD$` phantom variable if found.

Minor QoL patch

05 Jul 04:40
9cfd645
Compare
Choose a tag to compare

This fixed #40, giving a more clearer error when Opcache is not enabled.

Fixes unquoted require autoload path

29 May 02:34
c6cddeb
Compare
Choose a tag to compare

That's it. You should now safely your composer autoloader when use useRequire().

Fixed missing dependency

30 Mar 01:24
bf82e6f
Compare
Choose a tag to compare

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

25 Mar 23:52
30fd806
Compare
Choose a tag to compare

New version 2.0

11 Mar 02:31
a7aa8ab
Compare
Choose a tag to compare

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 called memoryLimit().
  • The append() and exclude() 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 of require_once and resolve links.
  • The list() has been changed to getList().

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. Use selfExclude() to exclude the Preloader package files.
  • The shouldCompile() method has been removed. The package will use compilation over require_once by default.
  • The generate() method has been removed. Use writeTo() instead.
  • The whenHits() condition helper has been removed. Use when() instead.
  • The output() method has been removed. Use writeTo() instead.
  • The overwrite() method has been removed. Now the resulting preloader script will be always overwritten. To disable overwrite, issue false as second parameter to writeTo().

Fixed default method.

10 Mar 16:20
a7aa8ab
Compare
Choose a tag to compare
Fixed default method. Pre-release
Pre-release

Also, lowered Symfony Finder version to 4-5, since the API hasn't changed too much.

New version 2.0

09 Mar 15:02
ec163fe
Compare
Choose a tag to compare
New version 2.0 Pre-release
Pre-release

Basically, everything has changed. It's just better to read the Readme file.