N°8772 - automatic dependency in controller WIP

This commit is contained in:
Eric Espie
2025-10-31 08:58:50 +01:00
parent 45e4d9239c
commit 0196765eb6
5 changed files with 35 additions and 21 deletions

View File

@@ -38,10 +38,11 @@ class AbstractFormIO
* @param string $sName name of the IO
* @param string $sType type of the IO
*/
public function __construct(string $sName, string $sType)
public function __construct(string $sName, string $sType, AbstractFormBlock $oOwnerBlock)
{
$this->sName = $sName;
$this->sType = $sType;
$this->oOwnerBlock = $oOwnerBlock;
}
/**
@@ -54,20 +55,6 @@ class AbstractFormIO
return $this->oOwnerBlock;
}
/**
* Set the owner block.
*
* @param AbstractFormBlock $oOwnerBlock
*
* @return $this
*/
public function SetOwnerBlock(AbstractFormBlock $oOwnerBlock): self
{
$this->oOwnerBlock = $oOwnerBlock;
return $this;
}
/**
* Get the IO name.
*