Skip to content

Conversation

@shiftedreality
Copy link
Member

@shiftedreality shiftedreality commented Oct 21, 2019

@shiftedreality shiftedreality added the Progress: review PR/issue status label Oct 21, 2019
*
* @param OutputInterface $output
*/
public function copyStaticFile(OutputInterface $output)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this behavior here? It's not patch-related.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Removed

@oshmyheliuk
Copy link
Contributor

@shiftedreality Did you make changes in ece-tool to change patch applier behavior?

@shiftedreality
Copy link
Member Author

It's going be separate PR to ece-tools

*/
public function create(array $cmd): Process
{
return new Process(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why commands are imploded by space?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is BC. Starting from Symfony/Process 4.2 it accepts only array

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then, maybe retrieve only first element and throw exception if there are more elements in array?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the same method which Symfony does to preserve compatibility

*
* @throws FileNotFoundException
*/
public function get(string $path): string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest renaming this method to getContent or getFileContent.
It's not obvious what is doing method get without reading method description.

@andriyShevtsov
Copy link
Collaborator

QA approved

@shiftedreality shiftedreality added Progress: approved PR/issue status and removed qa labels Oct 29, 2019
@shiftedreality shiftedreality merged commit 173ee29 into develop Oct 29, 2019
@shiftedreality shiftedreality deleted the MAGECLOUD-4458 branch December 4, 2019 19:34
mmansoor-magento pushed a commit that referenced this pull request Oct 6, 2020
…cloud-patches-78

[Imported] MC 37324: Add fallback to 'patch' command when 'git' command is not available
andriyShevtsov pushed a commit that referenced this pull request Sep 8, 2025
…cloud-patches-78

[Imported] MC 37324: Add fallback to 'patch' command when 'git' command is not available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Progress: approved PR/issue status

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants