Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions
@@ -0,0 +1,78 @@
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\BlockBundle\Block;
use Sonata\BlockBundle\Model\BlockInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
/**
* Interface BlockServiceInterface.
*
* NEXT_MAJOR: remove this interface.
*
* @deprecated since 3.2, to be removed with 4.0
*/
interface BlockServiceInterface
{
/**
* @param BlockContextInterface $blockContext
* @param Response $response
*
* @return Response
*/
public function execute(BlockContextInterface $blockContext, Response $response = null);
/**
* @return string
*/
public function getName();
/**
* Define the default options for the block.
*
* NEXT_MAJOR: rename this method.
*
* @param OptionsResolverInterface $resolver
*
* @deprecated since version 2.3, to be renamed in 4.0.
* Use the method configureSettings instead.
* This method will be added to the BlockServiceInterface with SonataBlockBundle 4.0
*/
public function setDefaultSettings(OptionsResolverInterface $resolver);
/**
* @param BlockInterface $block
*/
public function load(BlockInterface $block);
/**
* @param string $media
*
* @return array
*/
public function getJavascripts($media);
/**
* @param string $media
*
* @return array
*/
public function getStylesheets($media);
/**
* @param BlockInterface $block
*
* @return array
*/
public function getCacheKeys(BlockInterface $block);
}