Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve PHAR generator #366

Closed
wants to merge 7 commits into from
Closed

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Nov 11, 2015

Hello :-),

A lot of different commits here:

  1. The stub is outdated (c3fbad0),
  2. Moving to PSR-2 introduced a syntax error in the stub (976c5b1),
  3. Since we have vendors/dependencies, they must be included inside the PHAR (0ea2603),
  4. Instead of using Solarium's autoloader, we use Composer's one to support vendors (a290433),
  5. Finally, the .gitignore file is updated (bd358d8 and 4b810f6).

Now it works great :-].

The `Solarium_Autoloader` class is now `Solarium\Autoloader`. The
`Solarium_Version` class does no longer exist and
`Solarium\Client::VERSION` must be used instead.
`__halt_compiler` does not exist. This is `__HALT_COMPILER`.
Since Solarium has dependencies, this is more interesting to include
vendors (aka dependencies) inside the PHAR file.

Thus we include the `library/` directory with the `vendor/` directory.
Since the PHAR includes dependencies, we must use Composer's autoloader.
It ensures all dependencies will be loaded correctly and as expected.
By forcing the root with a leading slash, it avoids Git to look up
inside the whole tree of files.
@Hywan
Copy link
Contributor Author

Hywan commented Nov 11, 2015

Last commit failed due to a timeout on Travis. Please, could you restart the build? Everything is ok then.

@basdenooijer
Copy link
Member

Thanks for your work, I've merged it in PR #369

@Hywan
Copy link
Contributor Author

Hywan commented Dec 1, 2015

You're welcome :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants