voryx / ThruwayBundle

Bundle for building Real-time Apps in Symfony
98 stars 47 forks source link

Create a configurable match option for the Subscribe annotation. #79

Closed ThePixelDeveloper closed 6 years ago

ThePixelDeveloper commented 6 years ago

Fixes #78.

Feel free to merge, but I'd appreciate some help writing a test suite for it.

This allows us to do things like ...

class TestSubscriber
{
    /**
     * @Subscribe(value="test.output", match="prefix")
     */
    public function logTestOutput($value): void
    {
        // This would match test.output.123, test.output.blah, etc ... 
    }
}
ThePixelDeveloper commented 6 years ago

I've had a setback and wont be able to get this sorted today, but it's definitely on my radar. Will keep you updated.

ThePixelDeveloper commented 6 years ago

@mbonneau Took longer than expected. Apologies and updated!