Adds interfaces to many classes.

This commit is contained in:
2022-09-03 12:48:53 +02:00
parent 0512af0f33
commit 4a32d3d50e
34 changed files with 613 additions and 128 deletions

View File

@@ -15,6 +15,7 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use VDM\Joomla\Componentbuilder\Compiler\Customcode as CompilerCustomcode;
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\CustomcodeInterface;
use VDM\Joomla\Componentbuilder\Compiler\Customcode\External;
use VDM\Joomla\Componentbuilder\Compiler\Customcode\Gui;
use VDM\Joomla\Componentbuilder\Compiler\Customcode\Hash;
@@ -71,10 +72,10 @@ class Customcode implements ServiceProviderInterface
*
* @param Container $container The DI container.
*
* @return CompilerCustomcode
* @return CustomcodeInterface
* @since 3.2.0
*/
public function getCustomcode(Container $container): CompilerCustomcode
public function getCustomcode(Container $container): CustomcodeInterface
{
return new CompilerCustomcode(
$container->get('Config'),