Vinoteca: модуль, шаблон и компоненты интернет-магазина вина на 1С-Битрикс
This commit is contained in:
commit
f6ba0d2174
470 files changed
+26454
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user