-
Notifications
You must be signed in to change notification settings - Fork 23
Expiremental: add a section output to track current running command #166
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
b0cd06d
to
f40bf64
Compare
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.
Awesome 🎉 Could you add a note in the changelog?
@@ -49,14 +49,19 @@ public static function getInput(): InputInterface | |||
return self::$input ?? throw new \LogicException('Input not available yet.'); | |||
} | |||
|
|||
public static function setOutput(OutputInterface $output): void |
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.
Should the removal of this setter be considered as a BC-break?
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.
maybe, but imo GlobalHelper is mainly used internally, maybe we should declare it like that instead ?
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.
That's what I thought at first but then remembered that we offered some setter to configure the app globally like for the cache, logger or http client, so probably not so internal IMO
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.
Maybe have custom function instead of using that then ? This class have both external / internal public methods from what i see, we should avoid that and provide a clean external entrypoint for this behavior, but not the subject of this PR,
54b11bb
to
1c37af8
Compare
1c37af8
to
9e4a628
Compare
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.
Cool 😎
Add a new way to output log for castor which will do the following :
Currently this output is only available when using the
CASTOR_USE_SECTION=true
env variable, we can make this default later, but it will be better to first test this output and existing project as an expiremental approach so we can iterate on this with real use casetest-2023-08-11_18.08.05.webm
Need symfony/symfony#51355 to work
Need symfony/symfony#51378 for better output (too many new lines)