src/Tenant/Service/TenantService.php
public function load(Tenant $tenant): TenantService
    {
        $this->disable('tenant');
        $connection = $this->manager->getConnection();
        $connection->beginTransaction();

        try {
            foreach ($this->loaderCollection as $loader) {
                $loader->load($tenant);
            }

            $connection->commit();
        } catch (Exception $exception) {
            $connection->rollBack();
            throw $exception;
        }

        $this->enable('tenant');

        return $this;
    }
public function load(Tenant $tenant): TenantService
    {
        $this->disable('tenant');
        $connection = $this->manager->getConnection();
        $connection->beginTransaction();

        try {
            foreach ($this->loaderCollection as $loader) {
                $loader->load($tenant);
            }

            $connection->commit();
        } catch (Exception $exception) {
            $connection->rollBack();
            throw $exception;
        }

        $this->enable('tenant');

        return $this;
    }
public function load ( Tenant $ tenant ) : TenantService { $ this -> disable ( 'tenant' ) ; $ connection = $ this -> manager -> getConnection ( ) ; $ connection -> beginTransaction ( ) ; try { foreach ( $ this -> loaderCollection as $ loader ) { $ loader -> load ( $ tenant ) ; } $ connection -> commit ( ) ; } catch ( Exception $ exception ) { $ connection -> rollBack ( ) ; throw $ exception ; } $ this -> enable ( 'tenant' ) ; return $ this ; }
Load tenant

@param \Ds\Component\Tenant\Entity\Tenant
@return \Ds\Component\Tenant\Service\TenantService
@throws \Exception
@example
<code>
[
'user' => [
'system' => [
'uuid' => 'd9e66aeb-d853-41bc-ad9e-ae6fb18fb067',
'password' => 'password'
],
'admin' => [
'uuid' => '28de3e41-87c1-47c9-813d-07a87278fc00',
'password' => 'password'
]
],
'identity' => [
'system' => [
'uuid' => '782637a1-7366-4805-a853-869f65fa3965'
],
'admin' => [
'uuid' => '782637a1-7366-4805-a853-869f65fa3965'
]
],
'business_unit' => [
'administration' => [
'uuid' => '5675406b-f2ed-453a-b3ef-5be4596e7da6'
]
],
'tenant' => [
'uuid' => '10e287ef-fcd0-45e1-b178-b44be9f2363a'
],
'config' => [
'app.spa.admin' => [
'value' => 'admin.ds'
],
'app.spa.portal' => [
'value' => 'portal.ds'
]
]
]
</code>
Load tenant