-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
PHAR improvements #389
PHAR improvements #389
Changes from 6 commits
312e913
8648452
c17676e
674d7db
ebf19f6
21201ae
6d94217
8dd9e4a
d18c970
cadcd37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ composer.lock | |
|
||
# phar related | ||
/build | ||
/build-phar | ||
rector.phar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
docs | ||
tests | ||
phpunit | ||
.git |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
parameters: | ||
prefix: 'RectorPhar' | ||
|
||
services: | ||
Rector\Rector\Dynamic\NamespaceReplacerRector: | ||
$oldToNewNamespaces: | ||
'Jean85': '%prefix%Jean85' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very creative use of Rector, like it 👍 Love the param! :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Every except specified would be even better:) We don't need to prefix Rector itself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see :) That would require new Rector, probably services:
Rector\Rector\Dynamic\NamespaceReplacerRector:
!Rector: Prefixed # all but "Rector" prefix by "Prefixed" What do you need to know from me to write it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will know that, after I try it:) But I feel like performance is bigger issue here, can we somehow speed it up? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. First things first. When PHAR is done, we can improve performance. Doing both at same time improved neither of both, tried for you :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm with Tomas here. Let's first fix this PHAR issue, than we can join forces together and make Rector as fast as we can 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reasons we've talked about and WTF like #319 (comment)
I'd recommend to use nested directory for build, e.g. common
build
, so file inbuild/rector.phar
would fail on missingvendor/autoload.php
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what about bin/rector.phar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
/bin
only bin files should be.build
is for the extra generated stuffDon't worry, it will be usable as
vendor/bin/rector.phar
in the end.