24 lines
623 B
PHP
24 lines
623 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\ComponentsBundle\View;
|
|
|
|
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
|
|
|
|
#[AutoconfigureTag('kupshop.components.view')]
|
|
interface ComponentsViewInterface
|
|
{
|
|
/**
|
|
* Get all top-level templates that can be used in this view
|
|
* List is used for extracting all used components in shop.
|
|
*/
|
|
public function getTemplates(): iterable;
|
|
|
|
/**
|
|
* Get webpack entrypoint used in current view
|
|
* All components in $this->getTemplates() will be associated with this entrypoint.
|
|
*/
|
|
public function getEntrypoint(): string;
|
|
}
|