first commit
This commit is contained in:
20
modules/Options/Http/OptionController.php
Normal file
20
modules/Options/Http/OptionController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Options\Http;
|
||||
|
||||
use Exception;
|
||||
use Modules\Options\Repository\Factory;
|
||||
|
||||
class OptionController
|
||||
{
|
||||
/**
|
||||
* @param $name
|
||||
* @param Factory $factory
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function index($name, Factory $factory): array
|
||||
{
|
||||
return $factory->make($name)->get();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user