21 lines
369 B
PHP
21 lines
369 B
PHP
<?php
|
|
|
|
namespace Modules\Common\Http\Controllers;
|
|
|
|
use Exception;
|
|
use Modules\Common\Repository\Options\Factory;
|
|
|
|
class OptionController
|
|
{
|
|
/**
|
|
* @param $name
|
|
* @param Factory $factory
|
|
* @return array
|
|
* @throws Exception
|
|
*/
|
|
public function index($name, Factory $factory): array
|
|
{
|
|
return $factory->make($name)->get();
|
|
}
|
|
}
|