Structure init

This commit is contained in:
Artem Vasilev 2024-03-02 04:44:33 +03:00
commit e08f89aaef
19 changed files with 964 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
lib_oauthserver/vendor

View File

@ -0,0 +1,13 @@
<?php
use Joomla\DI\ServiceProviderInterface;
\defined('_JEXEC') or die;
return new class implements ServiceProviderInterface {
public function register(\Joomla\DI\Container $container)
{
// TODO: Implement register() method.
}
};

View File

@ -0,0 +1,36 @@
<?php
namespace Webmasterskaya\Component\OauthServer\Administrator\Extension;
use Joomla\CMS\Association\AssociationServiceInterface;
use Joomla\CMS\Association\AssociationServiceTrait;
use Joomla\CMS\Component\Router\RouterServiceInterface;
use Joomla\CMS\Component\Router\RouterServiceTrait;
use Joomla\CMS\Extension\BootableExtensionInterface;
use Joomla\CMS\Extension\MVCComponent;
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
use Psr\Container\ContainerInterface;
\defined('JPATH_PLATFORM') or die;
class Component extends MVCComponent implements
BootableExtensionInterface, AssociationServiceInterface, RouterServiceInterface
{
use AssociationServiceTrait;
use HTMLRegistryAwareTrait;
use RouterServiceTrait;
/**
* Booting the extension. This is the function to set up the environment of the extension like
* registering new class loaders, etc.
*
*
* @param \Psr\Container\ContainerInterface $container The container
*
* @throws \Exception
* @since 1.0.0
*/
public function boot(ContainerInterface $container): void
{
}
}

View File

@ -0,0 +1,21 @@
{
"name": "webmaserskaya/lib_oauthserver",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Webmaserskaya\\Joomla\\OauthServer\\": "src/"
}
},
"authors": [
{