Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 60 | All time: 10,493 This week: 455 |
Version | License | PHP version | Categories | |||
event-module 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Language |
Register EventHandlers in PHP to be lazy loaded.
Set the directory to save the events in.
$my_directory = __DIR__.\DIRECTORY_SEPARATOR.'compiled-events';
\Webfan\App\EventModule::setBaseDir($my_directory);
### Register Events Register the events by your configuration/build script/process.
\Webfan\App\EventModule::register('test', 'testing', static function($eventName, $emitter, \webfan\hps\Event $Event){
print_r($Event->getArgument("testParam"));
});
### Call Events Dispatch the events later in a different script/process.
$event = new \webfan\hps\Event('testing');
$event->setArgument('testParam', 'testValue');
\Webfan\App\EventModule::action('test')->emit('testing', $event);
Files (14) |
File | Role | Description | ||
---|---|---|---|---|
config (1 file) | ||||
src (2 directories) | ||||
composer.json | Data | Auxiliary data | ||
config.xml | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (14) | / | src | / | Webfan | / | App |
File | Role | Description |
---|---|---|
EventModule.php | Class | Class source |
EventModule2.php | Class | Class source |
Files (14) | / | src | / | Webfan | / | Homepagesystem | / | EventFlow |
File | Role | Description |
---|---|---|
State.php | Class | Class source |
StateVM.php | Class | Class source |
StateVM2.php | Class | Class source |
Files (14) | / | src | / | webfan | / | hps |
File | Role | Description |
---|---|---|
CodeSerializer.php | Class | Class source |
EmitterInterface.php | Class | Class source |
Event.php | Class | Class source |
SerializeCode.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.