-
Notifications
You must be signed in to change notification settings - Fork 14
[FEATURE] Add the Symfony console and the public web/ directory #28
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
Conversation
Classes/Composer/ScriptHandler.php
Outdated
| @@ -0,0 +1,44 @@ | |||
| <?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.
This script appears to be a duplicate from the base-distribution package (minus unit tests) -- will it be removed from there?
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.
No, this is not that easy. Currently, the script is expected to be in the root package only (at least when it is called), i.e. in the base distributions for the application installation, and in rest-api when testing the rest-api without the base-distribution. It currently relies on this fact to determine the root package path.
I'll use a different approach instead: I'm currently working on a function for determining the application root path. I'll then move the Composer ScriptHandler to the core package and use that from base-distribution, rest-api and web-frontend.
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.
Hence marking this PR as blocked. (The base-distribution PR is not blocked, though.)
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.
Sounds like a good plan
a4f98e6 to
d11a22a
Compare
|
This PR now is using the corresponding core functions. I've also added automatic creation of the web/ folder (which just like bin/ is also for development purposes only). Currently, this build failing locally for me in the Controller integration tests due to a bug in the core concerning the application root directory. I'll look into it. |
Note: The console and the web directory will only be added if this project is the project root (i.e., usually when developing the package), not if is a requirement of the base-distribution package (or any other package).
d11a22a to
582e084
Compare
|
This PR fixes the problem: phpList/core#144 |
Note: The console will only be added if this project is the project root
(i.e., usually when developing the package), not if is a requirement of
the base-distribution package (or any other package).