Simple way to generate PHAR build using the Box Project #97

Closed
wants to merge 3 commits into
from

Projects

None yet

4 participants

Contributor

I changed the way to build a standalone PHAR archive for Doctrine Migrations using the Box Project (http://box-project.org/).

This helps to remove the unnecessary (and currently broken) scripts to generate a phar archive.

Documentation for building the archive has been updated.

@stof stof commented on an outdated diff Oct 18, 2012
bin/doctrine-migrations.php
$classLoader->register();
-$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\DBAL', 'phar://'.__FILE__);
stof
stof Oct 18, 2012 Member

Couldn't you simply rely on the autoloader generated by Composer ?

Contributor

Thanks @stof for your comment. I forgot to use the Composer autoloader as I just moved the phar-cli-stub.php file to a new directory and didn't edit it a lot.

This is now fixed!

@mikeSimonson mikeSimonson added the 3.0 label Feb 14, 2015
@mikeSimonson mikeSimonson modified the milestone: 1.1 Feb 15, 2015
Contributor

👍

@mikeSimonson mikeSimonson modified the milestone: 1.1, 1.0 Feb 23, 2015
Member

merged.
Thanks

Contributor

Wow, that was an old PR I created!

Thanks @mikeSimonson for merging it (I don't need the PHAR anymore but that may be useful for some others), and thanks for all activity on the project above all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment