GET //Maravel-Ecosystem/ Version 10.72 Adds Autodiscovery for autowiring:cache from Packages
root @maravel-ecosystem:~/Development / Version 10.72 Adds Autodiscovery for autowiring:cache from Packages

Version 10.72.2 Adds Autodiscovery for autowiring:cache from Packages

Versions 10.72 and 20.0.0-RC24 fix autowiring:cache for FQN instead of folder and also introduce autodiscovery for packages that want to cache certain folders or classes.

Packages can auto add these via their composer.json:

{
"extra": {
"maravel": {
"autowiring": [
{
"path": "src/ExampleFolder",
"methods": []
},
{
"path": "\\Vendor\\ExampleClass",
"methods": []
}
]
}
}
}

The documentation has been updated.

This applies to both Maravel and Maravelith templates.

Note that this is used only during the autowiring:cache command, NOT on each request.