1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:34:03 +00:00

Add more events

This commit is contained in:
Samuel Štancl 2020-05-17 17:42:09 +02:00
parent ed96aee669
commit b87c0bc9d2
22 changed files with 165 additions and 52 deletions

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class BootstrappingTenancy extends Contracts\TenancyEvent
{
}

View file

@ -0,0 +1,16 @@
<?php
namespace Stancl\Tenancy\Events\Contracts;
use Stancl\Tenancy\Tenancy;
abstract class TenancyEvent
{
/** @var Tenancy */
public $tenancy;
public function __construct(Tenancy $tenancy)
{
$this->tenancy = $tenancy;
}
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class CreatingDomain extends Contracts\DomainEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class CreatingTenant extends Contracts\TenantEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class DeletingDomain extends Contracts\DomainEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class DeletingTenant extends Contracts\TenantEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class EndingTenancy extends Contracts\TenancyEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class InitializingTenancy extends Contracts\TenancyEvent
{
}

View file

@ -2,15 +2,6 @@
namespace Stancl\Tenancy\Events;
use Stancl\Tenancy\Tenancy;
class RevertedToCentralContext
class RevertedToCentralContext extends Contracts\TenancyEvent
{
/** @var Tenancy */
public $tenancy;
public function __construct(Tenancy $tenancy)
{
$this->tenancy = $tenancy;
}
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class RevertingToCentralContext extends Contracts\TenancyEvent
{
}

View file

@ -0,0 +1,6 @@
<?php
namespace Stancl\Tenancy\Events;
class SavedDomain extends Contracts\DomainEvent
{}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class SavedTenant extends Contracts\TenantEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class SavingDomain extends Contracts\DomainEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class SavingTenant extends Contracts\TenantEvent
{
}

View file

@ -2,15 +2,6 @@
namespace Stancl\Tenancy\Events;
use Stancl\Tenancy\Tenancy;
class TenancyBootstrapped
class TenancyBootstrapped extends Contracts\TenancyEvent
{
/** @var Tenancy */
public $tenancy;
public function __construct(Tenancy $tenancy)
{
$this->tenancy = $tenancy;
}
}

View file

@ -2,15 +2,6 @@
namespace Stancl\Tenancy\Events;
use Stancl\Tenancy\Tenancy;
class TenancyEnded
class TenancyEnded extends Contracts\TenancyEvent
{
/** @var Tenancy */
public $tenancy;
public function __construct(Tenancy $tenancy)
{
$this->tenancy = $tenancy;
}
}
}

View file

@ -2,15 +2,6 @@
namespace Stancl\Tenancy\Events;
use Stancl\Tenancy\Tenancy;
class TenancyInitialized
class TenancyInitialized extends Contracts\TenancyEvent
{
/** @var Tenancy */
public $tenancy;
public function __construct(Tenancy $tenancy)
{
$this->tenancy = $tenancy;
}
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class UpdatingDomain extends Contracts\DomainEvent
{
}

View file

@ -0,0 +1,7 @@
<?php
namespace Stancl\Tenancy\Events;
class UpdatingTenant extends Contracts\TenantEvent
{
}