Maslosoft Signals Documentation
Wireless Cross-Component Communication
Edit
Generate signals definition
Before using signals there must be available information about whole application signals and slots. This can be generated by signals command line, or programmatically in target application.
Generate signals via command line
To build signals definition call below command in application root:
vendor/bin/signals build
This will scan application sources for signals related annotations
and define definition file.
Scanned sources folders are configurable
via $paths
(also by yml and adapters):
Generate signals programatically
Signals can also be generated programatically by generate()
method:
(new Utility(new Signal()))->generate();
Performance notices
- Generating might take some time - should be performed only when updating/installing/removing application components
- Generated file is PHP type - will be automatically cached by opcache or APC