Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Message filtering support#14

Merged
WyriHaximus merged 20 commits intomasterfrom
feature-11
Jan 25, 2016
Merged

Message filtering support#14
WyriHaximus merged 20 commits intomasterfrom
feature-11

Conversation

@WyriHaximus
Copy link
Copy Markdown
Member

As discussed in #11

Comment thread src/Plugin.php Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any particular reason for using a constant versus just referencing FilterInterface::class where needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Force of 5.4 habbit, I'll update both of them

@WyriHaximus
Copy link
Copy Markdown
Member Author

Took care of the PHP 5.4 stuff and added a new filter that lets you filter on parse_url URL sections.

@WyriHaximus
Copy link
Copy Markdown
Member Author

Rebased master into this PR so it can be merged without issues.

Comment thread src/Filter/UrlSectionFilter.php Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need a @param tag for $section.

Comment thread src/Filter/UrlEvent.php Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would returning null here would make more sense semantically (i.e. to imply the lack of a value)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The reasoning for using false is the failure of finding a value. If your preference is using null that can be arranged 😄

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, I think null makes more sense here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@elazar
Copy link
Copy Markdown
Member

elazar commented Jan 24, 2016

👍

@WyriHaximus
Copy link
Copy Markdown
Member Author

@svpernova09 @PSchwisow Any of you has any comments on this? Otherwise I'de like to merge and tag 3.1.0 tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants