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

Behaviors #27

Merged
merged 4 commits into from
Mar 6, 2024
Merged

Behaviors #27

merged 4 commits into from
Mar 6, 2024

Conversation

AugustMiller
Copy link
Contributor

Went ahead and implemented this in response to #26. Seems like a pretty common extension pattern, and is a great way to start learning about native-feeling features, events, and so-on.

Usage:

php craft make behavior --module my-module

When run, you will be prompted for a target class (the intended "owner"). Generator will try and add the appropriate event logic to the provided plugin/module so that it is registered against all instances of that class.

Usage:

```
php craft make behavior --module my-module
```

When run, you will be prompted for a target class (the intended "owner"). Generator will try and add the appropriate event logic to the provided plugin/module so that it is registered against all instances of that class.
@sjelfull
Copy link

@AugustMiller @brandonkelly 👍 on this.

@brandonkelly brandonkelly merged commit b1d7a00 into main Mar 6, 2024
@brandonkelly brandonkelly deleted the feature/behaviors branch March 6, 2024 12:10
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.

None yet

3 participants