- Removed firewall parts, moved into another module
This commit is contained in:
parent
474ec986a6
commit
e260177943
@ -10,7 +10,7 @@ use Storage\Session;
|
|||||||
use function DI\autowire, DI\create, DI\get;
|
use function DI\autowire, DI\create, DI\get;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'lean:adapter.sqlite' => function($c) {
|
/* 'lean:adapter.sqlite' => function($c) {
|
||||||
$adapter = new ConnectionAdapter('lean.console', $c->get('config')['ulmus'], false);
|
$adapter = new ConnectionAdapter('lean.console', $c->get('config')['ulmus'], false);
|
||||||
$adapter->resolveConfiguration();
|
$adapter->resolveConfiguration();
|
||||||
|
|
||||||
@ -23,5 +23,5 @@ return [
|
|||||||
$adapter->resolveConfiguration();
|
$adapter->resolveConfiguration();
|
||||||
|
|
||||||
return $adapter;
|
return $adapter;
|
||||||
}
|
}*/
|
||||||
];
|
];
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Lean\Console\Entity\Firewall;
|
|
||||||
|
|
||||||
use Ulmus\Attribute\Obj\Table;
|
|
||||||
use Ulmus\Attribute\Property\Field;
|
|
||||||
use Ulmus\Entity\Field\Datetime;
|
|
||||||
|
|
||||||
#[Table(name:"firewall_banned_ips", adapter: "lean.console")]
|
|
||||||
class BannedIp implements \JsonSerializable
|
|
||||||
{
|
|
||||||
use \Ulmus\EntityTrait;
|
|
||||||
|
|
||||||
#[Field\Id]
|
|
||||||
public string $id;
|
|
||||||
|
|
||||||
#[Field\ForeignKey(name: "connection_id")]
|
|
||||||
public ? int $connectionId;
|
|
||||||
|
|
||||||
#[Field(length: 12)]
|
|
||||||
public ? string $ipv4;
|
|
||||||
|
|
||||||
#[Field(length: 40)]
|
|
||||||
public ? string $ipv6;
|
|
||||||
|
|
||||||
#[Field\Datetime(name: "banned_until")]
|
|
||||||
public Datetime $bannedUntil;
|
|
||||||
|
|
||||||
#[Field\Datetime(name: "created_at")]
|
|
||||||
public Datetime $createdAt;
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Lean\Console\Entity\Firewall;
|
|
||||||
|
|
||||||
use Ulmus\Attribute\Obj\Table;
|
|
||||||
use Ulmus\Attribute\Property\Field;
|
|
||||||
use Ulmus\Entity\Field\Datetime;
|
|
||||||
|
|
||||||
#[Table(name:"firewall_connections", adapter: "lean.console")]
|
|
||||||
class Connection implements \JsonSerializable
|
|
||||||
{
|
|
||||||
use \Ulmus\EntityTrait;
|
|
||||||
|
|
||||||
#[Field\Id]
|
|
||||||
public string $id;
|
|
||||||
|
|
||||||
#[Field(length: 12)]
|
|
||||||
public ? string $ipv4;
|
|
||||||
|
|
||||||
#[Field(length: 40)]
|
|
||||||
public ? string $ipv6;
|
|
||||||
|
|
||||||
#[Field]
|
|
||||||
public bool $success;
|
|
||||||
|
|
||||||
#[Field(length: 255, name: "error_message")]
|
|
||||||
public ? string $errorMessage;
|
|
||||||
|
|
||||||
#[Field\Datetime(name: "created_at")]
|
|
||||||
public Datetime $createdAt;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user