Skip to content
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

Allow command optimization #147

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Riley19280
Copy link
Contributor

Laravel added support for integrating with the base optimize and optimize:clear commands, so this PR adds support for that functionality like so:

$package->optimizes(Command::class, ClearCommand::class);

Note that this PR depends on L11 development support for testing, so those changes are also shown

@freekmurze
Copy link
Member

Could you rebase against main?

@Riley19280
Copy link
Contributor Author

@freekmurze Rebased!

Copy link
Member

@freekmurze freekmurze left a comment

Choose a reason for hiding this comment

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

Could you also add a nice example of this functionality to the docs?

public function hasOptimization(?string $optimize = null, ?string $clear = null, ?string $key = null): static
{
$this->optimizeCommands[] = [
'optimize' => $optimize,
Copy link
Member

Choose a reason for hiding this comment

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

This will be a command right? Rename the variable to optimizeCommand, same for clearCommand and packagenameKey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants