Unverified Commit 3eaaf31e authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix () Add default value in controller for csv variable

parent b86679ad
Pipeline #6980 canceled with stages
......@@ -41,7 +41,7 @@ class organization
*
* @return void
*/
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv)
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv = null)
{
$this->sdoFactory = $sdoFactory;
$this->csv = $csv;
......
......@@ -44,12 +44,12 @@ class archivalProfile
* @param bool $notifyModification The state of the fonction of notification modification
* @param string $profilesDirectory The profile directory
*/
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv, $notifyModification, $profilesDirectory)
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv = null, $notifyModification, $profilesDirectory)
{
$this->sdoFactory = $sdoFactory;
$this->csv = $csv;
$this->lifeCycleJournalController = \laabs::newController('lifeCycle/journal');
$this->descriptionSchemeController = \laabs::newController('recordsManagement/descriptionScheme');
$this->descriptionSchemeController = \laabs::newController('recordsManagement/descriptionScheme');
//$this->descriptionFields = \Laabs::newController('recordsManagement/descriptionField')->index();
if (!is_dir($profilesDirectory) && !empty($profilesDirectory)) {
......
......@@ -37,7 +37,7 @@ class descriptionField
* @param \dependency\sdo\Factory $sdoFactory The sdo factory
* @param \dependency\csv\Csv $csv Csv
*/
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv)
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv = null)
{
$this->sdoFactory = $sdoFactory;
$this->csv = $csv;
......
......@@ -38,7 +38,7 @@ class retentionRule
* @param \dependency\sdo\Factory $sdoFactory The sdo factory
* @param \dependency\csv\Csv $csv Csv
*/
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv)
public function __construct(\dependency\sdo\Factory $sdoFactory, \dependency\csv\Csv $csv = null)
{
$this->sdoFactory = $sdoFactory;
$this->csv = $csv;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment