Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'Hello @manish ...' to 'How can i add a custom library to my UNA project ?'
Comment to How can i add a custom library to my UNA project ?
    •  ·  LeonidS
    •  ·  2024-11-07T18:04:33+0000

    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

      •  ·  manish
      •  ·  In reply to
        LeonidS
      •  ·  2024-11-08T09:39:34+0000

      Thanks @LeonidS

    See more...
    • Features
    • Pricing
    • Forum
    • Blog
    • Market
    • About
    • Copyright
    • Contact
    • Terms
    • Privacy
    • 𝕏
    Search
    UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
    • Features
    • Core CMS
  • Resources
    • Documentation
    • Marketplace
    • Discussions
    • Support Groups
    • API Reference
    • UNA CMS on GitHub
    • Webinars
    • Blog
  • Community
    • Discussions
    • Groups
    • Webinars
  • Pricing
  • Are you sure?
    Please, enter a value here