30 lines
642 B
PHP
30 lines
642 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Jinove\Vinoteca\Controller;
|
|
|
|
use Bitrix\Main\Engine\ActionFilter\HttpMethod;
|
|
use Bitrix\Main\Engine\Controller;
|
|
|
|
class State extends Controller
|
|
{
|
|
public function configureActions(): array
|
|
{
|
|
return [
|
|
"all" => [
|
|
"prefilters" => [new HttpMethod([HttpMethod::METHOD_GET])],
|
|
],
|
|
];
|
|
}
|
|
|
|
public function allAction(): array
|
|
{
|
|
return [
|
|
"favorite" => (new Favorite())->stateAction(),
|
|
"basket" => (new Basket())->stateAction(),
|
|
"compare" => (new Compare())->stateAction(),
|
|
];
|
|
}
|
|
}
|