jeyroik / extas-repositories
There is no license information available for the latest version (0.5.1) of this package.
repositories package
0.5.1
2020-08-27 14:58 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-28 00:39:50 UTC
README
Description
Repositories for extas.
Install
# vendor/bin/extas init
# vendor/bin/extas install
Using
extas.json
{ "repositories": [ { "name": "<repository.name>", "scope": "<repository.scope>", "pk": "<repository.primary_key>", "class": "<repository.item.class>", "aliases": ["<repository.alias>"] } ] }
For example:
{ "repositories": [ { "name": "plugins", "scope": "extas", "pk": "class", "class": "extas\\components\\plugins\\Plugin", "aliases": ["plugins", "pluginRepository"] } ] }
Then somewhere in a code:
use extas\components\Item; class My extends Item { // ... } $my = new My(); $my->plugins()->all([]);