Moves all major structre function to container. Adds new Server replacment class for legacy calls. Refactored multiple classes. Add more advanced compiler options, with donation notice.

This commit is contained in:
2023-02-12 21:15:41 +02:00
parent 7fa8964b44
commit 339aec221e
58 changed files with 4552 additions and 1755 deletions

View File

@@ -15,7 +15,7 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use VDM\Joomla\Componentbuilder\Compiler\Library\Data;
use VDM\Joomla\Componentbuilder\Compiler\Library\Builder;
use VDM\Joomla\Componentbuilder\Compiler\Library\Structure;
/**
@@ -38,8 +38,8 @@ class Library implements ServiceProviderInterface
$container->alias(Data::class, 'Library.Data')
->share('Library.Data', [$this, 'getData'], true);
$container->alias(Builder::class, 'Library.Builder')
->share('Library.Builder', [$this, 'getBuilder'], true);
$container->alias(Structure::class, 'Library.Structure')
->share('Library.Structure', [$this, 'getStructure'], true);
}
/**
@@ -63,16 +63,16 @@ class Library implements ServiceProviderInterface
}
/**
* Get the Compiler Library Builder
* Get the Compiler Library Structure Builder
*
* @param Container $container The DI container.
*
* @return Builder
* @return Structure
* @since 3.2.0
*/
public function getBuilder(Container $container): Builder
public function getStructure(Container $container): Structure
{
return new Builder(
return new Structure(
$container->get('Config'),
$container->get('Registry'),
$container->get('Event'),