Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation #87

Open
grempa opened this issue Sep 23, 2024 · 1 comment
Open

Missing documentation #87

grempa opened this issue Sep 23, 2024 · 1 comment

Comments

@grempa
Copy link

grempa commented Sep 23, 2024

In Readme.rst is written:

Extending the client
It is possible to extend the client and provide additional data which can be displayed later in the master installation.

But i miss a chapter "How" this is done. Or a link to an extension which does that, at least.
Would be great to have this.

@hoermannklaus
Copy link

@grempa You can implement an additional Provider and configure it in the TYPO3_CONF_VARS of your custom extension in the ext_localconf.php like this:

$GLOBALS['TYPO3_CONF_VARS']['EXT']['t3monitoring_client']['provider'][] = MyProvider::class;

For the MyProvider you can create a new Provider Class:

namespace MyExtension\Provider;

use T3Monitor\T3monitoringClient\Provider\DataProviderInterface;

class MyProvider implements DataProviderInterface
{
    // Implement necessary "get" interface method
{

See also here for a provider in the t3monitoring_client extension: ExtensionProvider

Now the JSON from the client is enriched with the data returned in the "get" method.

I hope this was accurate enough, but I think you get the idea and manage to workout the "details".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants