M
Hi There,
I want to use Third Party Ratchet Sockets library in My Una module development.
How to set it up ?
I can't see any info in the UNA documentation for installing third part library and usage.
Can any one guide, step by step.
Regards ,
Manish
Hello @manish !
First of all, you need to have a common module's skeleton described here:
https://github.com/unacms/una-vendor-test/wiki
The 3rd party package can be placed in the plugins folder and connected to the main Module class in this way like in the old variant of OAuth2 integration:
require_once (BX_DIRECTORY_PATH_PLUGINS . 'OAuth2/Autoloader.php'); OAuth2\Autoloader::register(); class BxOAuthUserCredentialsStorage extends OAuth2\Storage\Pdo implements OAuth2\Storage\UserCredentialsInterface
Thanks @LeonidS
Hello @manish !
First of all, you need to have a common module's skeleton described here:
https://github.com/unacms/una-vendor-test/wiki
The 3rd party package can be placed in the plugins folder and connected to the main Module class in this way like in the old variant of OAuth2 integration:
require_once (BX_DIRECTORY_PATH_PLUGINS . 'OAuth2/Autoloader.php'); OAuth2\Autoloader::register(); class BxOAuthUserCredentialsStorage extends OAuth2\Storage\Pdo implements OAuth2\Storage\UserCredentialsInterface
M
Thanks @LeonidS