https://github.com/websemantics/streams_platform-extension
This example extension is a how-to guide to extending the Stream Platform core
https://github.com/websemantics/streams_platform-extension
Last synced: 8 months ago
JSON representation
This example extension is a how-to guide to extending the Stream Platform core
- Host: GitHub
- URL: https://github.com/websemantics/streams_platform-extension
- Owner: websemantics
- Created: 2015-06-21T15:56:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T16:06:45.000Z (over 10 years ago)
- Last Synced: 2025-02-17T11:12:12.379Z (12 months ago)
- Language: PHP
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stream Platform Extension
This example extension is a how-to guide to extending the Stream Platform core.
After successfully installing the extension, all newly created streams will get custom generated code for the stream models and their translations, find template here `resources/assets/generator/model.twig` & `resources/assets/generator/translation.twig`
This will make it easy to have a common super-class for your module generated streams. You can set the super-class from the config file `resources/config/settings.php`
Here's a list of all the extended core classes/interfaces:
* Anomaly\Streams\Platform\Stream\StreamModel
* Anomaly\Streams\Platform\Stream\Contract\StreamRepositoryInterface
* Anomaly\Streams\Platform\Stream\StreamRepository
* Anomaly\Streams\Platform\Entry\EntryModel
* Anomaly\Streams\Platform\Assignment\AssignmentModel
Feel free to add your own functions to these classes etc, as your see fit,
Enjoy