You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an extend.php file to the flarum/flarum skeleton as well, that will allow quickly plugging in some custom assets or even bits of functionality that's specific to an individual installation of Flarum.
This will replace the need for packaging up custom extensions just to install them on one site. (Useful for branding and site integrations, I hope.)
For bigger things, we can even add a src directory with PSR-0 autoloading support (because we cannot know the namespace of the individual site).
These extenders will be loaded in Site and passed to our InstalledSite class, which will merge them with the extenders from all enabled extensions. A hypothetical Laravel integration could load them from somewhere else (a file, tagged bindings in the IoC container), before instantiating that InstalledSite class.
The text was updated successfully, but these errors were encountered:
I want this to start with the most simple example possible. And since
the introduction of flarum/framework#1559 (per-site extenders), this does not
even require explaining extensions.
After that, I'd like to continue with the most simple extensions
possible (everything in one extender file), before moving on to where to
put classes if you want to structure your extension code as it gets
larger.
Refs flarum/framework#1000.
Add an
extend.php
file to the flarum/flarum skeleton as well, that will allow quickly plugging in some custom assets or even bits of functionality that's specific to an individual installation of Flarum.This will replace the need for packaging up custom extensions just to install them on one site. (Useful for branding and site integrations, I hope.)
For bigger things, we can even add a
src
directory with PSR-0 autoloading support (because we cannot know the namespace of the individual site).These extenders will be loaded in
Site
and passed to ourInstalledSite
class, which will merge them with the extenders from all enabled extensions. A hypothetical Laravel integration could load them from somewhere else (a file, tagged bindings in the IoC container), before instantiating thatInstalledSite
class.The text was updated successfully, but these errors were encountered: