mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 18:30:38 +00:00
Frontend upload restrict consolidation
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace App\Users\Restrictions;
|
||||
|
||||
use Illuminate\Support\Manager;
|
||||
use App\Users\Restrictions\Engines\DefaultRestrictionsEngine;
|
||||
use App\Users\Restrictions\Engines\FixedBillingRestrictionsEngine;
|
||||
use App\Users\Restrictions\Engines\MeteredBillingRestrictionsEngine;
|
||||
|
||||
class RestrictionsManager extends Manager
|
||||
{
|
||||
public function getDefaultDriver(): string
|
||||
{
|
||||
return get_restriction_driver();
|
||||
}
|
||||
|
||||
public function createDefaultDriver(): DefaultRestrictionsEngine
|
||||
{
|
||||
return new DefaultRestrictionsEngine();
|
||||
}
|
||||
|
||||
public function createFixedDriver(): FixedBillingRestrictionsEngine
|
||||
{
|
||||
return new FixedBillingRestrictionsEngine();
|
||||
}
|
||||
|
||||
public function createMeteredDriver(): MeteredBillingRestrictionsEngine
|
||||
{
|
||||
return new MeteredBillingRestrictionsEngine();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user