Download the PHP package jmikola/wildcard-event-dispatcher-bundle without Composer

On this page you can find all versions of the php package jmikola/wildcard-event-dispatcher-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wildcard-event-dispatcher-bundle

JmikolaWildcardEventDispatcherBundle

Build Status

This bundle integrates the WildcardEventDispatcher library with Symfony and allows event listeners to be assigned using a wildcard pattern inspired by AMQP topic exchanges.

Symfony's event dispatcher component and the framework's existing convention for event names (dot-separated words) is already quite similar to AMQP message routing keys. This bundle is intended to be used sparingly, where wildcards may replace verbose configuration for central listeners, such as an activity logging service.

Some background info for this bundle may be found on the symfony-devs mailing list.

Compatibility

This bundle requires Symfony 2.3 or above.

Configuration

There are no configuration options. Symfony will load the bundle's dependency injection extension automatically.

The extension will create a service that composes the existing event_dispatcher service and assumes its service ID. Depending on whether debug mode is enabled, this bundle may wrap an instance of FrameworkBundle's ContainerAwareEventDispatcher or TraceableEventDispatcher class.

Listening on Wildcard Event Patterns

This bundle enables you to use the single-word * and multi-word # wildcards when assigning event listeners. The wildcard operators are described in greater detail in the documentation for WildcardEventDispatcher.

Single-word Wildcard

Consider the scenario where the acme.listener service is currently listening on multiple core events:

You could refactor the above configuration to use the single-word * wildcard:

This listener will now observe all events starting with core. and followed by another word. An event named core would also be matched by this pattern.

Multi-word Wildcard

Suppose there was an event in your application named core.foo.bar. The aforementioned core.* pattern would not match this event. You could use:

This syntax would match core.foo and core.foo.bar, but core would no longer be matched (assuming there was such an event); however, the multi-word # wildcard would allow all of these event names to be matched:

The # wildcard could also be used to listen to all events in the application:


All versions of wildcard-event-dispatcher-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
jmikola/wildcard-event-dispatcher Version ^1.1.0
symfony/config Version ^2.3 || ^3.0
symfony/dependency-injection Version ^2.3 || ^3.0
symfony/event-dispatcher Version ^2.3 || ^3.0
symfony/http-kernel Version ^2.3 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jmikola/wildcard-event-dispatcher-bundle contains the following files

Loading the files please wait ....