Remove unneeded phpdocs
This commit is contained in:
parent
2273de0011
commit
692a6e7495
@ -46,7 +46,6 @@ class DoctrineDataCollector extends DataCollector
|
|||||||
* Adds the stack logger for a connection.
|
* Adds the stack logger for a connection.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param DebugStack $logger
|
|
||||||
*/
|
*/
|
||||||
public function addLogger($name, DebugStack $logger)
|
public function addLogger($name, DebugStack $logger)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,6 @@ abstract class AbstractDoctrineExtension extends Extension
|
|||||||
* Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
|
* Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
|
||||||
*
|
*
|
||||||
* @param array $objectManager
|
* @param array $objectManager
|
||||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
|
||||||
*/
|
*/
|
||||||
protected function registerMappingDrivers($objectManager, ContainerBuilder $container)
|
protected function registerMappingDrivers($objectManager, ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
@ -252,7 +251,6 @@ abstract class AbstractDoctrineExtension extends Extension
|
|||||||
* Detects what metadata driver to use for the supplied directory.
|
* Detects what metadata driver to use for the supplied directory.
|
||||||
*
|
*
|
||||||
* @param string $dir A directory path
|
* @param string $dir A directory path
|
||||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
|
||||||
*
|
*
|
||||||
* @return string|null A metadata driver short name, if one can be detected
|
* @return string|null A metadata driver short name, if one can be detected
|
||||||
*/
|
*/
|
||||||
@ -286,7 +284,6 @@ abstract class AbstractDoctrineExtension extends Extension
|
|||||||
* Loads a configured object manager metadata, query or result cache driver.
|
* Loads a configured object manager metadata, query or result cache driver.
|
||||||
*
|
*
|
||||||
* @param array $objectManager A configured object manager
|
* @param array $objectManager A configured object manager
|
||||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
|
||||||
* @param string $cacheName
|
* @param string $cacheName
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException in case of unknown driver type
|
* @throws \InvalidArgumentException in case of unknown driver type
|
||||||
@ -302,7 +299,6 @@ abstract class AbstractDoctrineExtension extends Extension
|
|||||||
* @param string $cacheName The cache driver name
|
* @param string $cacheName The cache driver name
|
||||||
* @param string $objectManagerName The object manager name
|
* @param string $objectManagerName The object manager name
|
||||||
* @param array $cacheDriver The cache driver mapping
|
* @param array $cacheDriver The cache driver mapping
|
||||||
* @param ContainerBuilder $container The ContainerBuilder instance
|
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
|
@ -40,10 +40,7 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
|||||||
* passed which optimizes the object loading for one of the Doctrine
|
* passed which optimizes the object loading for one of the Doctrine
|
||||||
* mapper implementations.
|
* mapper implementations.
|
||||||
*
|
*
|
||||||
* @param ObjectManager $manager The object manager
|
|
||||||
* @param string $class The class name of the loaded objects
|
* @param string $class The class name of the loaded objects
|
||||||
* @param IdReader|null $idReader The reader for the object IDs
|
|
||||||
* @param EntityLoaderInterface|null $objectLoader The objects loader
|
|
||||||
*/
|
*/
|
||||||
public function __construct(ObjectManager $manager, string $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
|
public function __construct(ObjectManager $manager, string $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
|
||||||
{
|
{
|
||||||
|
@ -32,11 +32,6 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
|
|||||||
*/
|
*/
|
||||||
private $queryBuilder;
|
private $queryBuilder;
|
||||||
|
|
||||||
/**
|
|
||||||
* Construct an ORM Query Builder Loader.
|
|
||||||
*
|
|
||||||
* @param QueryBuilder $queryBuilder The query builder for creating the query builder
|
|
||||||
*/
|
|
||||||
public function __construct(QueryBuilder $queryBuilder)
|
public function __construct(QueryBuilder $queryBuilder)
|
||||||
{
|
{
|
||||||
$this->queryBuilder = $queryBuilder;
|
$this->queryBuilder = $queryBuilder;
|
||||||
|
@ -265,7 +265,6 @@ abstract class DoctrineType extends AbstractType implements ResetInterface
|
|||||||
/**
|
/**
|
||||||
* Return the default loader object.
|
* Return the default loader object.
|
||||||
*
|
*
|
||||||
* @param ObjectManager $manager
|
|
||||||
* @param mixed $queryBuilder
|
* @param mixed $queryBuilder
|
||||||
* @param string $class
|
* @param string $class
|
||||||
*
|
*
|
||||||
|
@ -46,7 +46,6 @@ class EntityType extends DoctrineType
|
|||||||
/**
|
/**
|
||||||
* Return the default loader object.
|
* Return the default loader object.
|
||||||
*
|
*
|
||||||
* @param ObjectManager $manager
|
|
||||||
* @param QueryBuilder $queryBuilder
|
* @param QueryBuilder $queryBuilder
|
||||||
* @param string $class
|
* @param string $class
|
||||||
*
|
*
|
||||||
|
@ -31,8 +31,6 @@ class DoctrineTestHelper
|
|||||||
/**
|
/**
|
||||||
* Returns an entity manager for testing.
|
* Returns an entity manager for testing.
|
||||||
*
|
*
|
||||||
* @param Configuration|null $config
|
|
||||||
*
|
|
||||||
* @return EntityManager
|
* @return EntityManager
|
||||||
*/
|
*/
|
||||||
public static function createTestEntityManager(Configuration $config = null)
|
public static function createTestEntityManager(Configuration $config = null)
|
||||||
|
@ -35,7 +35,6 @@ class UniqueEntityValidator extends ConstraintValidator
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param object $entity
|
* @param object $entity
|
||||||
* @param Constraint $constraint
|
|
||||||
*
|
*
|
||||||
* @throws UnexpectedTypeException
|
* @throws UnexpectedTypeException
|
||||||
* @throws ConstraintDefinitionException
|
* @throws ConstraintDefinitionException
|
||||||
|
@ -82,7 +82,6 @@ abstract class AbstractPhpFileCacheWarmer implements CacheWarmerInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $cacheDir
|
* @param string $cacheDir
|
||||||
* @param ArrayAdapter $arrayAdapter
|
|
||||||
*
|
*
|
||||||
* @return bool false if there is nothing to warm-up
|
* @return bool false if there is nothing to warm-up
|
||||||
*/
|
*/
|
||||||
|
@ -34,8 +34,6 @@ class TemplateFinder implements TemplateFinderInterface
|
|||||||
private $templates;
|
private $templates;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param KernelInterface $kernel A KernelInterface instance
|
|
||||||
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
|
|
||||||
* @param string $rootDir The directory where global templates can be stored
|
* @param string $rootDir The directory where global templates can be stored
|
||||||
*/
|
*/
|
||||||
public function __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)
|
public function __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)
|
||||||
|
@ -133,7 +133,6 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
*
|
*
|
||||||
* @param Definition|Alias|object $service
|
* @param Definition|Alias|object $service
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @param ContainerBuilder|null $builder
|
|
||||||
*/
|
*/
|
||||||
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
|
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
|
||||||
|
|
||||||
@ -224,7 +223,6 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ContainerBuilder $builder
|
|
||||||
* @param string $serviceId
|
* @param string $serviceId
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
@ -249,7 +247,6 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ContainerBuilder $builder
|
|
||||||
* @param bool $showHidden
|
* @param bool $showHidden
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -46,7 +46,6 @@ class RedirectController
|
|||||||
* In case the route name is empty, the status code will be 404 when permanent is false
|
* In case the route name is empty, the status code will be 404 when permanent is false
|
||||||
* and 410 otherwise.
|
* and 410 otherwise.
|
||||||
*
|
*
|
||||||
* @param Request $request The request instance
|
|
||||||
* @param string $route The route name to redirect to
|
* @param string $route The route name to redirect to
|
||||||
* @param bool $permanent Whether the redirection is permanent
|
* @param bool $permanent Whether the redirection is permanent
|
||||||
* @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
|
* @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
|
||||||
@ -88,7 +87,6 @@ class RedirectController
|
|||||||
* In case the path is empty, the status code will be 404 when permanent is false
|
* In case the path is empty, the status code will be 404 when permanent is false
|
||||||
* and 410 otherwise.
|
* and 410 otherwise.
|
||||||
*
|
*
|
||||||
* @param Request $request The request instance
|
|
||||||
* @param string $path The absolute path or URL to redirect to
|
* @param string $path The absolute path or URL to redirect to
|
||||||
* @param bool $permanent Whether the redirect is permanent or not
|
* @param bool $permanent Whether the redirect is permanent or not
|
||||||
* @param string|null $scheme The URL scheme (null to keep the current one)
|
* @param string|null $scheme The URL scheme (null to keep the current one)
|
||||||
|
@ -29,8 +29,6 @@ trait MicroKernelTrait
|
|||||||
*
|
*
|
||||||
* $routes->import('config/routing.yml');
|
* $routes->import('config/routing.yml');
|
||||||
* $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard');
|
* $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard');
|
||||||
*
|
|
||||||
* @param RouteCollectionBuilder $routes
|
|
||||||
*/
|
*/
|
||||||
abstract protected function configureRoutes(RouteCollectionBuilder $routes);
|
abstract protected function configureRoutes(RouteCollectionBuilder $routes);
|
||||||
|
|
||||||
@ -50,9 +48,6 @@ trait MicroKernelTrait
|
|||||||
* Or parameters:
|
* Or parameters:
|
||||||
*
|
*
|
||||||
* $c->setParameter('halloween', 'lot of fun');
|
* $c->setParameter('halloween', 'lot of fun');
|
||||||
*
|
|
||||||
* @param ContainerBuilder $c
|
|
||||||
* @param LoaderInterface $loader
|
|
||||||
*/
|
*/
|
||||||
abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);
|
abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ interface EngineInterface extends BaseEngineInterface
|
|||||||
*
|
*
|
||||||
* @param string $view The view name
|
* @param string $view The view name
|
||||||
* @param array $parameters An array of parameters to pass to the view
|
* @param array $parameters An array of parameters to pass to the view
|
||||||
* @param Response $response A Response instance
|
|
||||||
*
|
*
|
||||||
* @return Response A Response instance
|
* @return Response A Response instance
|
||||||
*
|
*
|
||||||
|
@ -47,7 +47,6 @@ class FormHelper extends Helper
|
|||||||
*
|
*
|
||||||
* The theme format is "<Bundle>:<Controller>".
|
* The theme format is "<Bundle>:<Controller>".
|
||||||
*
|
*
|
||||||
* @param FormView $view A FormView instance
|
|
||||||
* @param string|array $themes A theme or an array of theme
|
* @param string|array $themes A theme or an array of theme
|
||||||
* @param bool $useDefaultThemes If true, will use default themes defined in the renderer
|
* @param bool $useDefaultThemes If true, will use default themes defined in the renderer
|
||||||
*/
|
*/
|
||||||
@ -75,7 +74,6 @@ class FormHelper extends Helper
|
|||||||
* form individually. You can also create a custom form theme to adapt
|
* form individually. You can also create a custom form theme to adapt
|
||||||
* the look of the form.
|
* the look of the form.
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the form
|
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -92,7 +90,6 @@ class FormHelper extends Helper
|
|||||||
*
|
*
|
||||||
* <?php echo $view['form']->start($form) ?>>
|
* <?php echo $view['form']->start($form) ?>>
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the start tag
|
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -109,7 +106,6 @@ class FormHelper extends Helper
|
|||||||
*
|
*
|
||||||
* <?php echo $view['form']->end($form) ?>>
|
* <?php echo $view['form']->end($form) ?>>
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the end tag
|
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -132,7 +128,6 @@ class FormHelper extends Helper
|
|||||||
*
|
*
|
||||||
* <?php echo $view['form']->widget($form, ['separator' => '+++++']) ?>
|
* <?php echo $view['form']->widget($form, ['separator' => '+++++']) ?>
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the widget
|
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -145,7 +140,6 @@ class FormHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Renders the entire form field "row".
|
* Renders the entire form field "row".
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the row
|
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -158,7 +152,6 @@ class FormHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Renders the label of the given view.
|
* Renders the label of the given view.
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for which to render the label
|
|
||||||
* @param string $label The label
|
* @param string $label The label
|
||||||
* @param array $variables Additional variables passed to the template
|
* @param array $variables Additional variables passed to the template
|
||||||
*
|
*
|
||||||
@ -176,8 +169,6 @@ class FormHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Renders the help of the given view.
|
* Renders the help of the given view.
|
||||||
*
|
*
|
||||||
* @param FormView $view The parent view
|
|
||||||
*
|
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
*/
|
*/
|
||||||
public function help(FormView $view): string
|
public function help(FormView $view): string
|
||||||
@ -198,7 +189,6 @@ class FormHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Renders views which have not already been rendered.
|
* Renders views which have not already been rendered.
|
||||||
*
|
*
|
||||||
* @param FormView $view The parent view
|
|
||||||
* @param array $variables An array of variables
|
* @param array $variables An array of variables
|
||||||
*
|
*
|
||||||
* @return string The HTML markup
|
* @return string The HTML markup
|
||||||
@ -211,7 +201,6 @@ class FormHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Renders a block of the template.
|
* Renders a block of the template.
|
||||||
*
|
*
|
||||||
* @param FormView $view The view for determining the used themes
|
|
||||||
* @param string $blockName The name of the block to render
|
* @param string $blockName The name of the block to render
|
||||||
* @param array $variables The variable to pass to the template
|
* @param array $variables The variable to pass to the template
|
||||||
*
|
*
|
||||||
|
@ -31,7 +31,6 @@ class TemplateLocator implements FileLocatorInterface
|
|||||||
private $cacheHits = [];
|
private $cacheHits = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FileLocatorInterface $locator A FileLocatorInterface instance
|
|
||||||
* @param string $cacheDir The cache path
|
* @param string $cacheDir The cache path
|
||||||
*/
|
*/
|
||||||
public function __construct(FileLocatorInterface $locator, string $cacheDir = null)
|
public function __construct(FileLocatorInterface $locator, string $cacheDir = null)
|
||||||
|
@ -98,7 +98,6 @@ abstract class AbstractFactory implements SecurityFactoryInterface
|
|||||||
* Subclasses must return the id of a service which implements the
|
* Subclasses must return the id of a service which implements the
|
||||||
* AuthenticationProviderInterface.
|
* AuthenticationProviderInterface.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container
|
|
||||||
* @param string $id The unique id of the firewall
|
* @param string $id The unique id of the firewall
|
||||||
* @param array $config The options array for this listener
|
* @param array $config The options array for this listener
|
||||||
* @param string $userProviderId The id of the user provider
|
* @param string $userProviderId The id of the user provider
|
||||||
|
@ -24,7 +24,6 @@ interface SecurityFactoryInterface
|
|||||||
/**
|
/**
|
||||||
* Configures the container services required to use the authentication listener.
|
* Configures the container services required to use the authentication listener.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container
|
|
||||||
* @param string $id The unique id of the firewall
|
* @param string $id The unique id of the firewall
|
||||||
* @param array $config The options array for the listener
|
* @param array $config The options array for the listener
|
||||||
* @param string $userProvider The service id of the user provider
|
* @param string $userProvider The service id of the user provider
|
||||||
|
@ -33,8 +33,6 @@ class VoteListener implements EventSubscriberInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Event dispatched by a voter during access manager decision.
|
* Event dispatched by a voter during access manager decision.
|
||||||
*
|
|
||||||
* @param VoteEvent $event event with voter data
|
|
||||||
*/
|
*/
|
||||||
public function onVoterVote(VoteEvent $event)
|
public function onVoterVote(VoteEvent $event)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,6 @@ class ExceptionController
|
|||||||
protected $debug;
|
protected $debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Environment $twig
|
|
||||||
* @param bool $debug Show error (false) or exception (true) pages by default
|
* @param bool $debug Show error (false) or exception (true) pages by default
|
||||||
*/
|
*/
|
||||||
public function __construct(Environment $twig, bool $debug)
|
public function __construct(Environment $twig, bool $debug)
|
||||||
@ -92,7 +91,6 @@ class ExceptionController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Request $request
|
|
||||||
* @param string $format
|
* @param string $format
|
||||||
* @param int $code An HTTP response status code
|
* @param int $code An HTTP response status code
|
||||||
* @param bool $showException
|
* @param bool $showException
|
||||||
|
@ -64,7 +64,6 @@ class ProfilerController
|
|||||||
/**
|
/**
|
||||||
* Renders a profiler panel for the given token.
|
* Renders a profiler panel for the given token.
|
||||||
*
|
*
|
||||||
* @param Request $request The current HTTP request
|
|
||||||
* @param string $token The profiler token
|
* @param string $token The profiler token
|
||||||
*
|
*
|
||||||
* @return Response A Response instance
|
* @return Response A Response instance
|
||||||
@ -110,7 +109,6 @@ class ProfilerController
|
|||||||
/**
|
/**
|
||||||
* Renders the Web Debug Toolbar.
|
* Renders the Web Debug Toolbar.
|
||||||
*
|
*
|
||||||
* @param Request $request The current HTTP Request
|
|
||||||
* @param string $token The profiler token
|
* @param string $token The profiler token
|
||||||
*
|
*
|
||||||
* @return Response A Response instance
|
* @return Response A Response instance
|
||||||
@ -212,7 +210,6 @@ class ProfilerController
|
|||||||
/**
|
/**
|
||||||
* Renders the search results.
|
* Renders the search results.
|
||||||
*
|
*
|
||||||
* @param Request $request The current HTTP Request
|
|
||||||
* @param string $token The token
|
* @param string $token The token
|
||||||
*
|
*
|
||||||
* @return Response A Response instance
|
* @return Response A Response instance
|
||||||
|
@ -43,7 +43,6 @@ class TemplateManager
|
|||||||
/**
|
/**
|
||||||
* Gets the template name for a given panel.
|
* Gets the template name for a given panel.
|
||||||
*
|
*
|
||||||
* @param Profile $profile
|
|
||||||
* @param string $panel
|
* @param string $panel
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
@ -26,7 +26,6 @@ class Packages
|
|||||||
private $packages = [];
|
private $packages = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param PackageInterface $defaultPackage The default package
|
|
||||||
* @param PackageInterface[] $packages Additional packages indexed by name
|
* @param PackageInterface[] $packages Additional packages indexed by name
|
||||||
*/
|
*/
|
||||||
public function __construct(PackageInterface $defaultPackage = null, array $packages = [])
|
public function __construct(PackageInterface $defaultPackage = null, array $packages = [])
|
||||||
@ -47,7 +46,6 @@ class Packages
|
|||||||
* Adds a package.
|
* Adds a package.
|
||||||
*
|
*
|
||||||
* @param string $name The package name
|
* @param string $name The package name
|
||||||
* @param PackageInterface $package The package
|
|
||||||
*/
|
*/
|
||||||
public function addPackage($name, PackageInterface $package)
|
public function addPackage($name, PackageInterface $package)
|
||||||
{
|
{
|
||||||
|
@ -30,8 +30,6 @@ class PathPackage extends Package
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $basePath The base path to be prepended to relative paths
|
* @param string $basePath The base path to be prepended to relative paths
|
||||||
* @param VersionStrategyInterface $versionStrategy The version strategy
|
|
||||||
* @param ContextInterface|null $context The context
|
|
||||||
*/
|
*/
|
||||||
public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
||||||
{
|
{
|
||||||
|
@ -40,8 +40,6 @@ class UrlPackage extends Package
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|string[] $baseUrls Base asset URLs
|
* @param string|string[] $baseUrls Base asset URLs
|
||||||
* @param VersionStrategyInterface $versionStrategy The version strategy
|
|
||||||
* @param ContextInterface|null $context Context
|
|
||||||
*/
|
*/
|
||||||
public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
||||||
{
|
{
|
||||||
|
@ -51,8 +51,6 @@ abstract class Client
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $server The server parameters (equivalent of $_SERVER)
|
* @param array $server The server parameters (equivalent of $_SERVER)
|
||||||
* @param History $history A History instance to store the browser history
|
|
||||||
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
|
public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
|
||||||
{
|
{
|
||||||
@ -309,7 +307,6 @@ abstract class Client
|
|||||||
/**
|
/**
|
||||||
* Submits a form.
|
* Submits a form.
|
||||||
*
|
*
|
||||||
* @param Form $form A Form instance
|
|
||||||
* @param array $values An array of form field values
|
* @param array $values An array of form field values
|
||||||
* @param array $serverParameters An array of server parameters
|
* @param array $serverParameters An array of server parameters
|
||||||
*
|
*
|
||||||
@ -498,8 +495,6 @@ abstract class Client
|
|||||||
/**
|
/**
|
||||||
* Filters the BrowserKit request to the origin one.
|
* Filters the BrowserKit request to the origin one.
|
||||||
*
|
*
|
||||||
* @param Request $request The BrowserKit Request to filter
|
|
||||||
*
|
|
||||||
* @return object An origin request instance
|
* @return object An origin request instance
|
||||||
*/
|
*/
|
||||||
protected function filterRequest(Request $request)
|
protected function filterRequest(Request $request)
|
||||||
@ -706,7 +701,6 @@ abstract class Client
|
|||||||
/**
|
/**
|
||||||
* Makes a request from a Request object directly.
|
* Makes a request from a Request object directly.
|
||||||
*
|
*
|
||||||
* @param Request $request A Request instance
|
|
||||||
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
|
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
|
@ -103,7 +103,6 @@ abstract class AbstractAdapter implements AdapterInterface, CacheInterface, Logg
|
|||||||
* @param int $defaultLifetime
|
* @param int $defaultLifetime
|
||||||
* @param string $version
|
* @param string $version
|
||||||
* @param string $directory
|
* @param string $directory
|
||||||
* @param LoggerInterface|null $logger
|
|
||||||
*
|
*
|
||||||
* @return AdapterInterface
|
* @return AdapterInterface
|
||||||
*/
|
*/
|
||||||
|
@ -71,7 +71,6 @@ class RedisTagAwareAdapter extends AbstractTagAwareAdapter
|
|||||||
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client
|
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client
|
||||||
* @param string $namespace The default namespace
|
* @param string $namespace The default namespace
|
||||||
* @param int $defaultLifetime The default lifetime
|
* @param int $defaultLifetime The default lifetime
|
||||||
* @param MarshallerInterface|null $marshaller
|
|
||||||
*
|
*
|
||||||
* @throws \Symfony\Component\Cache\Exception\LogicException If phpredis with version lower than 3.1.3.
|
* @throws \Symfony\Component\Cache\Exception\LogicException If phpredis with version lower than 3.1.3.
|
||||||
*/
|
*/
|
||||||
|
@ -31,7 +31,6 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param TraceableAdapter $instance
|
|
||||||
*/
|
*/
|
||||||
public function addInstance($name, TraceableAdapter $instance)
|
public function addInstance($name, TraceableAdapter $instance)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,6 @@ class TreeBuilder implements NodeParentInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The name of the root node
|
* @param string $name The name of the root node
|
||||||
* @param string $type The type of the root node
|
* @param string $type The type of the root node
|
||||||
* @param NodeBuilder $builder A custom node builder instance
|
|
||||||
*
|
*
|
||||||
* @return ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array')
|
* @return ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array')
|
||||||
*
|
*
|
||||||
|
@ -23,7 +23,6 @@ class Processor
|
|||||||
/**
|
/**
|
||||||
* Processes an array of configurations.
|
* Processes an array of configurations.
|
||||||
*
|
*
|
||||||
* @param NodeInterface $configTree The node tree describing the configuration
|
|
||||||
* @param array $configs An array of configuration items to process
|
* @param array $configs An array of configuration items to process
|
||||||
*
|
*
|
||||||
* @return array The processed configuration
|
* @return array The processed configuration
|
||||||
@ -42,7 +41,6 @@ class Processor
|
|||||||
/**
|
/**
|
||||||
* Processes an array of configurations.
|
* Processes an array of configurations.
|
||||||
*
|
*
|
||||||
* @param ConfigurationInterface $configuration The configuration class
|
|
||||||
* @param array $configs An array of configuration items to process
|
* @param array $configs An array of configuration items to process
|
||||||
*
|
*
|
||||||
* @return array The processed configuration
|
* @return array The processed configuration
|
||||||
|
@ -30,8 +30,6 @@ interface ResourceCheckerInterface
|
|||||||
* Queries the ResourceChecker whether it can validate a given
|
* Queries the ResourceChecker whether it can validate a given
|
||||||
* resource or not.
|
* resource or not.
|
||||||
*
|
*
|
||||||
* @param ResourceInterface $metadata The resource to be checked for freshness
|
|
||||||
*
|
|
||||||
* @return bool True if the ResourceChecker can handle this resource type, false if not
|
* @return bool True if the ResourceChecker can handle this resource type, false if not
|
||||||
*/
|
*/
|
||||||
public function supports(ResourceInterface $metadata);
|
public function supports(ResourceInterface $metadata);
|
||||||
@ -39,7 +37,6 @@ interface ResourceCheckerInterface
|
|||||||
/**
|
/**
|
||||||
* Validates the resource.
|
* Validates the resource.
|
||||||
*
|
*
|
||||||
* @param ResourceInterface $resource The resource to be validated
|
|
||||||
* @param int $timestamp The timestamp at which the cache associated with this resource was created
|
* @param int $timestamp The timestamp at which the cache associated with this resource was created
|
||||||
*
|
*
|
||||||
* @return bool True if the resource has not changed since the given timestamp, false otherwise
|
* @return bool True if the resource has not changed since the given timestamp, false otherwise
|
||||||
|
@ -25,7 +25,6 @@ class ContainerCommandLoader implements CommandLoaderInterface
|
|||||||
private $commandMap;
|
private $commandMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ContainerInterface $container A container from which to load command services
|
|
||||||
* @param array $commandMap An array with command names as keys and service ids as values
|
* @param array $commandMap An array with command names as keys and service ids as values
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerInterface $container, array $commandMap)
|
public function __construct(ContainerInterface $container, array $commandMap)
|
||||||
|
@ -23,7 +23,6 @@ interface DescriptorInterface
|
|||||||
/**
|
/**
|
||||||
* Describes an object if supported.
|
* Describes an object if supported.
|
||||||
*
|
*
|
||||||
* @param OutputInterface $output
|
|
||||||
* @param object $object
|
* @param object $object
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
|
@ -81,7 +81,6 @@ class XmlDescriptor extends Descriptor
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Application $application
|
|
||||||
* @param string|null $namespace
|
* @param string|null $namespace
|
||||||
*
|
*
|
||||||
* @return \DOMDocument
|
* @return \DOMDocument
|
||||||
|
@ -36,7 +36,6 @@ interface OutputFormatterInterface
|
|||||||
* Sets a new style.
|
* Sets a new style.
|
||||||
*
|
*
|
||||||
* @param string $name The style name
|
* @param string $name The style name
|
||||||
* @param OutputFormatterStyleInterface $style The style instance
|
|
||||||
*/
|
*/
|
||||||
public function setStyle($name, OutputFormatterStyleInterface $style);
|
public function setStyle($name, OutputFormatterStyleInterface $style);
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@ class DescriptorHelper extends Helper
|
|||||||
* * format: string, the output format name
|
* * format: string, the output format name
|
||||||
* * raw_text: boolean, sets output type as raw
|
* * raw_text: boolean, sets output type as raw
|
||||||
*
|
*
|
||||||
* @param OutputInterface $output
|
|
||||||
* @param object $object
|
* @param object $object
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*
|
*
|
||||||
@ -73,7 +72,6 @@ class DescriptorHelper extends Helper
|
|||||||
* Registers a descriptor.
|
* Registers a descriptor.
|
||||||
*
|
*
|
||||||
* @param string $format
|
* @param string $format
|
||||||
* @param DescriptorInterface $descriptor
|
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
@ -40,7 +40,6 @@ class HelperSet implements \IteratorAggregate
|
|||||||
/**
|
/**
|
||||||
* Sets a helper.
|
* Sets a helper.
|
||||||
*
|
*
|
||||||
* @param HelperInterface $helper The helper instance
|
|
||||||
* @param string $alias An alias
|
* @param string $alias An alias
|
||||||
*/
|
*/
|
||||||
public function set(HelperInterface $helper, $alias = null)
|
public function set(HelperInterface $helper, $alias = null)
|
||||||
|
@ -28,7 +28,6 @@ class ProcessHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Runs an external process.
|
* Runs an external process.
|
||||||
*
|
*
|
||||||
* @param OutputInterface $output An OutputInterface instance
|
|
||||||
* @param array|Process $cmd An instance of Process or an array of the command and arguments
|
* @param array|Process $cmd An instance of Process or an array of the command and arguments
|
||||||
* @param string|null $error An error message that must be displayed if something went wrong
|
* @param string|null $error An error message that must be displayed if something went wrong
|
||||||
* @param callable|null $callback A PHP callback to run whenever there is some
|
* @param callable|null $callback A PHP callback to run whenever there is some
|
||||||
@ -92,7 +91,6 @@ class ProcessHelper extends Helper
|
|||||||
* This is identical to run() except that an exception is thrown if the process
|
* This is identical to run() except that an exception is thrown if the process
|
||||||
* exits with a non-zero exit code.
|
* exits with a non-zero exit code.
|
||||||
*
|
*
|
||||||
* @param OutputInterface $output An OutputInterface instance
|
|
||||||
* @param string|Process $cmd An instance of Process or a command to run
|
* @param string|Process $cmd An instance of Process or a command to run
|
||||||
* @param string|null $error An error message that must be displayed if something went wrong
|
* @param string|null $error An error message that must be displayed if something went wrong
|
||||||
* @param callable|null $callback A PHP callback to run whenever there is some
|
* @param callable|null $callback A PHP callback to run whenever there is some
|
||||||
@ -118,10 +116,6 @@ class ProcessHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Wraps a Process callback to add debugging output.
|
* Wraps a Process callback to add debugging output.
|
||||||
*
|
*
|
||||||
* @param OutputInterface $output An OutputInterface interface
|
|
||||||
* @param Process $process The Process
|
|
||||||
* @param callable|null $callback A PHP callable
|
|
||||||
*
|
|
||||||
* @return callable
|
* @return callable
|
||||||
*/
|
*/
|
||||||
public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null)
|
public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null)
|
||||||
|
@ -34,7 +34,6 @@ class ProgressIndicator
|
|||||||
private static $formats;
|
private static $formats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OutputInterface $output
|
|
||||||
* @param string|null $format Indicator format
|
* @param string|null $format Indicator format
|
||||||
* @param int $indicatorChangeInterval Change interval in milliseconds
|
* @param int $indicatorChangeInterval Change interval in milliseconds
|
||||||
* @param array|null $indicatorValues Animated indicator characters
|
* @param array|null $indicatorValues Animated indicator characters
|
||||||
|
@ -103,7 +103,6 @@ class Table
|
|||||||
* Sets a style definition.
|
* Sets a style definition.
|
||||||
*
|
*
|
||||||
* @param string $name The style name
|
* @param string $name The style name
|
||||||
* @param TableStyle $style A TableStyle instance
|
|
||||||
*/
|
*/
|
||||||
public static function setStyleDefinition($name, TableStyle $style)
|
public static function setStyleDefinition($name, TableStyle $style)
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,6 @@ class ArgvInput extends Input
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|null $argv An array of parameters from the CLI (in the argv format)
|
* @param array|null $argv An array of parameters from the CLI (in the argv format)
|
||||||
* @param InputDefinition|null $definition A InputDefinition instance
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $argv = null, InputDefinition $definition = null)
|
public function __construct(array $argv = null, InputDefinition $definition = null)
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param string $expectedValue
|
* @param string $expectedValue
|
||||||
* @param Token $foundToken
|
|
||||||
*
|
*
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
|
@ -30,7 +30,6 @@ class FunctionNode extends AbstractNode
|
|||||||
private $arguments;
|
private $arguments;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param NodeInterface $selector
|
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param Token[] $arguments
|
* @param Token[] $arguments
|
||||||
*/
|
*/
|
||||||
|
@ -176,7 +176,6 @@ class ErrorHandler
|
|||||||
/**
|
/**
|
||||||
* Sets a logger to non assigned errors levels.
|
* Sets a logger to non assigned errors levels.
|
||||||
*
|
*
|
||||||
* @param LoggerInterface $logger A PSR-3 logger to put as default for the given levels
|
|
||||||
* @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
|
* @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
|
||||||
* @param bool $replace Whether to replace or not any existing logger
|
* @param bool $replace Whether to replace or not any existing logger
|
||||||
*/
|
*/
|
||||||
|
@ -28,7 +28,6 @@ interface FatalErrorHandlerInterface
|
|||||||
* Attempts to convert an error into an exception.
|
* Attempts to convert an error into an exception.
|
||||||
*
|
*
|
||||||
* @param array $error An array as returned by error_get_last()
|
* @param array $error An array as returned by error_get_last()
|
||||||
* @param FatalErrorException $exception A FatalErrorException instance
|
|
||||||
*
|
*
|
||||||
* @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
|
* @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
|
||||||
*/
|
*/
|
||||||
|
@ -105,7 +105,6 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Definition $definition
|
|
||||||
* @param bool $required
|
* @param bool $required
|
||||||
*
|
*
|
||||||
* @return \ReflectionFunctionAbstract|null
|
* @return \ReflectionFunctionAbstract|null
|
||||||
@ -161,7 +160,6 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Definition $definition
|
|
||||||
* @param string $method
|
* @param string $method
|
||||||
*
|
*
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
|
@ -54,7 +54,6 @@ class Compiler
|
|||||||
/**
|
/**
|
||||||
* Adds a pass to the PassConfig.
|
* Adds a pass to the PassConfig.
|
||||||
*
|
*
|
||||||
* @param CompilerPassInterface $pass A compiler pass
|
|
||||||
* @param string $type The type of the pass
|
* @param string $type The type of the pass
|
||||||
* @param int $priority Used to sort the passes
|
* @param int $priority Used to sort the passes
|
||||||
*/
|
*/
|
||||||
|
@ -113,7 +113,6 @@ class PassConfig
|
|||||||
/**
|
/**
|
||||||
* Adds a pass.
|
* Adds a pass.
|
||||||
*
|
*
|
||||||
* @param CompilerPassInterface $pass A Compiler pass
|
|
||||||
* @param string $type The pass type
|
* @param string $type The pass type
|
||||||
* @param int $priority Used to sort the passes
|
* @param int $priority Used to sort the passes
|
||||||
*
|
*
|
||||||
|
@ -87,7 +87,6 @@ final class ServiceLocatorTagPass extends AbstractRecursivePass
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ContainerBuilder $container
|
|
||||||
* @param Reference[] $refMap
|
* @param Reference[] $refMap
|
||||||
* @param string|null $callerId
|
* @param string|null $callerId
|
||||||
*
|
*
|
||||||
|
@ -446,7 +446,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
/**
|
/**
|
||||||
* Adds a compiler pass.
|
* Adds a compiler pass.
|
||||||
*
|
*
|
||||||
* @param CompilerPassInterface $pass A compiler pass
|
|
||||||
* @param string $type The type of compiler pass
|
* @param string $type The type of compiler pass
|
||||||
* @param int $priority Used to sort the passes
|
* @param int $priority Used to sort the passes
|
||||||
*
|
*
|
||||||
@ -975,7 +974,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Sets a service definition.
|
* Sets a service definition.
|
||||||
*
|
*
|
||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
* @param Definition $definition A Definition instance
|
|
||||||
*
|
*
|
||||||
* @return Definition the service definition
|
* @return Definition the service definition
|
||||||
*
|
*
|
||||||
|
@ -25,8 +25,6 @@ interface InstantiatorInterface
|
|||||||
/**
|
/**
|
||||||
* Instantiates a proxy object.
|
* Instantiates a proxy object.
|
||||||
*
|
*
|
||||||
* @param ContainerInterface $container The container from which the service is being requested
|
|
||||||
* @param Definition $definition The definition of the requested service
|
|
||||||
* @param string $id Identifier of the requested service
|
* @param string $id Identifier of the requested service
|
||||||
* @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance
|
* @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance
|
||||||
*
|
*
|
||||||
|
@ -30,7 +30,6 @@ interface DumperInterface
|
|||||||
/**
|
/**
|
||||||
* Generates the code to be used to instantiate a proxy in the dumped factory code.
|
* Generates the code to be used to instantiate a proxy in the dumped factory code.
|
||||||
*
|
*
|
||||||
* @param Definition $definition
|
|
||||||
* @param string $id Service identifier
|
* @param string $id Service identifier
|
||||||
* @param string $factoryCode The code to execute to create the service
|
* @param string $factoryCode The code to execute to create the service
|
||||||
*
|
*
|
||||||
|
@ -87,7 +87,6 @@ abstract class FileLoader extends BaseFileLoader
|
|||||||
* Registers a definition in the container with its instanceof-conditionals.
|
* Registers a definition in the container with its instanceof-conditionals.
|
||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param Definition $definition
|
|
||||||
*/
|
*/
|
||||||
protected function setDefinition($id, Definition $definition)
|
protected function setDefinition($id, Definition $definition)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ class ExpressionLanguage
|
|||||||
protected $functions = [];
|
protected $functions = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param CacheItemPoolInterface $cache
|
|
||||||
* @param ExpressionFunctionProviderInterface[] $providers
|
* @param ExpressionFunctionProviderInterface[] $providers
|
||||||
*/
|
*/
|
||||||
public function __construct(CacheItemPoolInterface $cache = null, array $providers = [])
|
public function __construct(CacheItemPoolInterface $cache = null, array $providers = [])
|
||||||
|
@ -85,7 +85,6 @@ class Parser
|
|||||||
* variable 'container' can be used in the expression
|
* variable 'container' can be used in the expression
|
||||||
* but the compiled code will use 'this'.
|
* but the compiled code will use 'this'.
|
||||||
*
|
*
|
||||||
* @param TokenStream $stream A token stream instance
|
|
||||||
* @param array $names An array of valid names
|
* @param array $names An array of valid names
|
||||||
*
|
*
|
||||||
* @return Node\Node A node tree
|
* @return Node\Node A node tree
|
||||||
|
@ -191,7 +191,6 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
|||||||
*
|
*
|
||||||
* This method should not be invoked.
|
* This method should not be invoked.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $viewTransformer
|
|
||||||
* @param bool $forcePrepend
|
* @param bool $forcePrepend
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException
|
* @throws BadMethodCallException
|
||||||
@ -218,7 +217,6 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
|||||||
*
|
*
|
||||||
* This method should not be invoked.
|
* This method should not be invoked.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $modelTransformer
|
|
||||||
* @param bool $forceAppend
|
* @param bool $forceAppend
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException
|
* @throws BadMethodCallException
|
||||||
|
@ -90,7 +90,6 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
* @param ChoiceLoaderInterface $loader The choice loader
|
|
||||||
* @param callable|string|PropertyPath|null $value The callable or path for
|
* @param callable|string|PropertyPath|null $value The callable or path for
|
||||||
* generating the choice values
|
* generating the choice values
|
||||||
*
|
*
|
||||||
@ -121,7 +120,6 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
* @param ChoiceListInterface $list The choice list
|
|
||||||
* @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices
|
* @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices
|
||||||
* @param callable|string|PropertyPath|null $label The callable or path generating the choice labels
|
* @param callable|string|PropertyPath|null $label The callable or path generating the choice labels
|
||||||
* @param callable|string|PropertyPath|null $index The callable or path generating the view indices
|
* @param callable|string|PropertyPath|null $index The callable or path generating the view indices
|
||||||
|
@ -45,7 +45,6 @@ class LazyChoiceList implements ChoiceListInterface
|
|||||||
* The callable receives the choice as first and the array key as the second
|
* The callable receives the choice as first and the array key as the second
|
||||||
* argument.
|
* argument.
|
||||||
*
|
*
|
||||||
* @param ChoiceLoaderInterface $loader The choice loader
|
|
||||||
* @param callable|null $value The callable generating the choice values
|
* @param callable|null $value The callable generating the choice values
|
||||||
*/
|
*/
|
||||||
public function __construct(ChoiceLoaderInterface $loader, callable $value = null)
|
public function __construct(ChoiceLoaderInterface $loader, callable $value = null)
|
||||||
|
@ -28,7 +28,6 @@ class CsrfExtension extends AbstractExtension
|
|||||||
private $translationDomain;
|
private $translationDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param CsrfTokenManagerInterface $tokenManager The CSRF token manager
|
|
||||||
* @param TranslatorInterface|null $translator The translator for translating error messages
|
* @param TranslatorInterface|null $translator The translator for translating error messages
|
||||||
* @param string|null $translationDomain The translation domain for translating
|
* @param string|null $translationDomain The translation domain for translating
|
||||||
*/
|
*/
|
||||||
|
@ -53,9 +53,6 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a CSRF field to the form when the CSRF protection is enabled.
|
* Adds a CSRF field to the form when the CSRF protection is enabled.
|
||||||
*
|
|
||||||
* @param FormBuilderInterface $builder The form builder
|
|
||||||
* @param array $options The options
|
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
@ -78,10 +75,6 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a CSRF field to the root form view.
|
* Adds a CSRF field to the root form view.
|
||||||
*
|
|
||||||
* @param FormView $view The form view
|
|
||||||
* @param FormInterface $form The form
|
|
||||||
* @param array $options The options
|
|
||||||
*/
|
*/
|
||||||
public function finishView(FormView $view, FormInterface $form, array $options)
|
public function finishView(FormView $view, FormInterface $form, array $options)
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,6 @@ class DependencyInjectionExtension implements FormExtensionInterface
|
|||||||
private $guesserServices;
|
private $guesserServices;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ContainerInterface $typeContainer
|
|
||||||
* @param iterable[] $typeExtensionServices
|
* @param iterable[] $typeExtensionServices
|
||||||
* @param iterable $guesserServices
|
* @param iterable $guesserServices
|
||||||
*/
|
*/
|
||||||
|
@ -187,7 +187,6 @@ class FormValidator extends ConstraintValidator
|
|||||||
* Post-processes the validation groups option for a given form.
|
* Post-processes the validation groups option for a given form.
|
||||||
*
|
*
|
||||||
* @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups
|
* @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups
|
||||||
* @param FormInterface $form The validated form
|
|
||||||
*
|
*
|
||||||
* @return (string|GroupSequence)[] The validation groups
|
* @return (string|GroupSequence)[] The validation groups
|
||||||
*/
|
*/
|
||||||
|
@ -41,11 +41,6 @@ class ValidationListener implements EventSubscriberInterface
|
|||||||
$this->violationMapper = $violationMapper;
|
$this->violationMapper = $violationMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Validates the form and its domain object.
|
|
||||||
*
|
|
||||||
* @param FormEvent $event The event object
|
|
||||||
*/
|
|
||||||
public function validateForm(FormEvent $event)
|
public function validateForm(FormEvent $event)
|
||||||
{
|
{
|
||||||
$form = $event->getForm();
|
$form = $event->getForm();
|
||||||
|
@ -23,8 +23,6 @@ interface ViolationMapperInterface
|
|||||||
* Maps a constraint violation to a form in the form tree under
|
* Maps a constraint violation to a form in the form tree under
|
||||||
* the given form.
|
* the given form.
|
||||||
*
|
*
|
||||||
* @param ConstraintViolation $violation The violation to map
|
|
||||||
* @param FormInterface $form The root form of the tree to map it to
|
|
||||||
* @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms
|
* @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms
|
||||||
*/
|
*/
|
||||||
public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false);
|
public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false);
|
||||||
|
@ -47,7 +47,6 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* The reverseTransform method of the transformer is used to convert from the
|
* The reverseTransform method of the transformer is used to convert from the
|
||||||
* view to the normalized format.
|
* view to the normalized format.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $viewTransformer
|
|
||||||
* @param bool $forcePrepend If set to true, prepend instead of appending
|
* @param bool $forcePrepend If set to true, prepend instead of appending
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
@ -69,7 +68,6 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* The reverseTransform method of the transformer is used to convert from the
|
* The reverseTransform method of the transformer is used to convert from the
|
||||||
* normalized to the model format.
|
* normalized to the model format.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $modelTransformer
|
|
||||||
* @param bool $forceAppend If set to true, append instead of prepending
|
* @param bool $forceAppend If set to true, append instead of prepending
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
|
@ -116,8 +116,6 @@ class FormError
|
|||||||
*
|
*
|
||||||
* This method must only be called once.
|
* This method must only be called once.
|
||||||
*
|
*
|
||||||
* @param FormInterface $origin The form that caused this error
|
|
||||||
*
|
|
||||||
* @throws BadMethodCallException If the method is called more than once
|
* @throws BadMethodCallException If the method is called more than once
|
||||||
*/
|
*/
|
||||||
public function setOrigin(FormInterface $origin)
|
public function setOrigin(FormInterface $origin)
|
||||||
|
@ -39,7 +39,6 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
|||||||
private $errors;
|
private $errors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FormInterface $form The erroneous form
|
|
||||||
* @param FormError[]|self[] $errors An array of form errors and instances
|
* @param FormError[]|self[] $errors An array of form errors and instances
|
||||||
* of FormErrorIterator
|
* of FormErrorIterator
|
||||||
*
|
*
|
||||||
|
@ -22,7 +22,6 @@ class FormEvent extends Event
|
|||||||
protected $data;
|
protected $data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FormInterface $form The associated form
|
|
||||||
* @param mixed $data The data
|
* @param mixed $data The data
|
||||||
*/
|
*/
|
||||||
public function __construct(FormInterface $form, $data)
|
public function __construct(FormInterface $form, $data)
|
||||||
|
@ -25,7 +25,6 @@ interface FormFactoryInterface
|
|||||||
*
|
*
|
||||||
* @param string $type The type of the form
|
* @param string $type The type of the form
|
||||||
* @param mixed $data The initial data
|
* @param mixed $data The initial data
|
||||||
* @param array $options The options
|
|
||||||
*
|
*
|
||||||
* @return FormInterface The form named after the type
|
* @return FormInterface The form named after the type
|
||||||
*
|
*
|
||||||
@ -56,7 +55,6 @@ interface FormFactoryInterface
|
|||||||
* @param string $class The fully qualified class name
|
* @param string $class The fully qualified class name
|
||||||
* @param string $property The name of the property to guess for
|
* @param string $property The name of the property to guess for
|
||||||
* @param mixed $data The initial data
|
* @param mixed $data The initial data
|
||||||
* @param array $options The options for the builder
|
|
||||||
*
|
*
|
||||||
* @return FormInterface The form named after the property
|
* @return FormInterface The form named after the property
|
||||||
*
|
*
|
||||||
@ -69,7 +67,6 @@ interface FormFactoryInterface
|
|||||||
*
|
*
|
||||||
* @param string $type The type of the form
|
* @param string $type The type of the form
|
||||||
* @param mixed $data The initial data
|
* @param mixed $data The initial data
|
||||||
* @param array $options The options
|
|
||||||
*
|
*
|
||||||
* @return FormBuilderInterface The form builder
|
* @return FormBuilderInterface The form builder
|
||||||
*
|
*
|
||||||
@ -99,7 +96,6 @@ interface FormFactoryInterface
|
|||||||
* @param string $class The fully qualified class name
|
* @param string $class The fully qualified class name
|
||||||
* @param string $property The name of the property to guess for
|
* @param string $property The name of the property to guess for
|
||||||
* @param mixed $data The initial data
|
* @param mixed $data The initial data
|
||||||
* @param array $options The options for the builder
|
|
||||||
*
|
*
|
||||||
* @return FormBuilderInterface The form builder named after the property
|
* @return FormBuilderInterface The form builder named after the property
|
||||||
*
|
*
|
||||||
|
@ -208,8 +208,6 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
|
|||||||
/**
|
/**
|
||||||
* Adds an error to this form.
|
* Adds an error to this form.
|
||||||
*
|
*
|
||||||
* @param FormError $error
|
|
||||||
*
|
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function addError(FormError $error);
|
public function addError(FormError $error);
|
||||||
|
@ -49,7 +49,6 @@ class FormRegistry implements FormRegistryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FormExtensionInterface[] $extensions An array of FormExtensionInterface
|
* @param FormExtensionInterface[] $extensions An array of FormExtensionInterface
|
||||||
* @param ResolvedFormTypeFactoryInterface $resolvedTypeFactory The factory for resolved form types
|
|
||||||
*
|
*
|
||||||
* @throws UnexpectedTypeException if any extension does not implement FormExtensionInterface
|
* @throws UnexpectedTypeException if any extension does not implement FormExtensionInterface
|
||||||
*/
|
*/
|
||||||
|
@ -50,11 +50,6 @@ interface FormTypeExtensionInterface
|
|||||||
*/
|
*/
|
||||||
public function finishView(FormView $view, FormInterface $form, array $options);
|
public function finishView(FormView $view, FormInterface $form, array $options);
|
||||||
|
|
||||||
/**
|
|
||||||
* Configures the options for this type.
|
|
||||||
*
|
|
||||||
* @param OptionsResolver $resolver The resolver for the options
|
|
||||||
*/
|
|
||||||
public function configureOptions(OptionsResolver $resolver);
|
public function configureOptions(OptionsResolver $resolver);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,9 +25,6 @@ interface FormTypeInterface
|
|||||||
* top most type. Type extensions can further modify the form.
|
* top most type. Type extensions can further modify the form.
|
||||||
*
|
*
|
||||||
* @see FormTypeExtensionInterface::buildForm()
|
* @see FormTypeExtensionInterface::buildForm()
|
||||||
*
|
|
||||||
* @param FormBuilderInterface $builder The form builder
|
|
||||||
* @param array $options The options
|
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options);
|
public function buildForm(FormBuilderInterface $builder, array $options);
|
||||||
|
|
||||||
@ -42,10 +39,6 @@ interface FormTypeInterface
|
|||||||
* to do so, move your logic to {@link finishView()} instead.
|
* to do so, move your logic to {@link finishView()} instead.
|
||||||
*
|
*
|
||||||
* @see FormTypeExtensionInterface::buildView()
|
* @see FormTypeExtensionInterface::buildView()
|
||||||
*
|
|
||||||
* @param FormView $view The view
|
|
||||||
* @param FormInterface $form The form
|
|
||||||
* @param array $options The options
|
|
||||||
*/
|
*/
|
||||||
public function buildView(FormView $view, FormInterface $form, array $options);
|
public function buildView(FormView $view, FormInterface $form, array $options);
|
||||||
|
|
||||||
@ -61,17 +54,11 @@ interface FormTypeInterface
|
|||||||
* else you are recommended to implement {@link buildView()} instead.
|
* else you are recommended to implement {@link buildView()} instead.
|
||||||
*
|
*
|
||||||
* @see FormTypeExtensionInterface::finishView()
|
* @see FormTypeExtensionInterface::finishView()
|
||||||
*
|
|
||||||
* @param FormView $view The view
|
|
||||||
* @param FormInterface $form The form
|
|
||||||
* @param array $options The options
|
|
||||||
*/
|
*/
|
||||||
public function finishView(FormView $view, FormInterface $form, array $options);
|
public function finishView(FormView $view, FormInterface $form, array $options);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures the options for this type.
|
* Configures the options for this type.
|
||||||
*
|
|
||||||
* @param OptionsResolver $resolver The resolver for the options
|
|
||||||
*/
|
*/
|
||||||
public function configureOptions(OptionsResolver $resolver);
|
public function configureOptions(OptionsResolver $resolver);
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ class PreloadedExtension implements FormExtensionInterface
|
|||||||
*
|
*
|
||||||
* @param FormTypeInterface[] $types The types that the extension should support
|
* @param FormTypeInterface[] $types The types that the extension should support
|
||||||
* @param FormTypeExtensionInterface[][] $typeExtensions The type extensions that the extension should support
|
* @param FormTypeExtensionInterface[][] $typeExtensions The type extensions that the extension should support
|
||||||
* @param FormTypeGuesserInterface|null $typeGuesser The guesser that the extension should support
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null)
|
public function __construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null)
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,6 @@ interface RequestHandlerInterface
|
|||||||
/**
|
/**
|
||||||
* Submits a form if it was submitted.
|
* Submits a form if it was submitted.
|
||||||
*
|
*
|
||||||
* @param FormInterface $form The form to submit
|
|
||||||
* @param mixed $request The current request
|
* @param mixed $request The current request
|
||||||
*/
|
*/
|
||||||
public function handleRequest(FormInterface $form, $request = null);
|
public function handleRequest(FormInterface $form, $request = null);
|
||||||
|
@ -118,9 +118,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures a form builder for the type hierarchy.
|
* Configures a form builder for the type hierarchy.
|
||||||
*
|
|
||||||
* @param FormBuilderInterface $builder The builder to configure
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
@ -139,10 +136,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
* Configures a form view for the type hierarchy.
|
* Configures a form view for the type hierarchy.
|
||||||
*
|
*
|
||||||
* This method is called before the children of the view are built.
|
* This method is called before the children of the view are built.
|
||||||
*
|
|
||||||
* @param FormView $view The form view to configure
|
|
||||||
* @param FormInterface $form The form corresponding to the view
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function buildView(FormView $view, FormInterface $form, array $options)
|
public function buildView(FormView $view, FormInterface $form, array $options)
|
||||||
{
|
{
|
||||||
@ -161,10 +154,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
* Finishes a form view for the type hierarchy.
|
* Finishes a form view for the type hierarchy.
|
||||||
*
|
*
|
||||||
* This method is called after the children of the view have been built.
|
* This method is called after the children of the view have been built.
|
||||||
*
|
|
||||||
* @param FormView $view The form view to configure
|
|
||||||
* @param FormInterface $form The form corresponding to the view
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function finishView(FormView $view, FormInterface $form, array $options)
|
public function finishView(FormView $view, FormInterface $form, array $options)
|
||||||
{
|
{
|
||||||
@ -211,8 +200,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The name of the builder
|
* @param string $name The name of the builder
|
||||||
* @param string|null $dataClass The data class
|
* @param string|null $dataClass The data class
|
||||||
* @param FormFactoryInterface $factory The current form factory
|
|
||||||
* @param array $options The builder options
|
|
||||||
*
|
*
|
||||||
* @return FormBuilderInterface The new builder instance
|
* @return FormBuilderInterface The new builder instance
|
||||||
*/
|
*/
|
||||||
@ -234,8 +221,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
*
|
*
|
||||||
* Override this method if you want to customize the view class.
|
* Override this method if you want to customize the view class.
|
||||||
*
|
*
|
||||||
* @param FormView|null $parent The parent view, if available
|
|
||||||
*
|
|
||||||
* @return FormView A new view instance
|
* @return FormView A new view instance
|
||||||
*/
|
*/
|
||||||
protected function newView(FormView $parent = null)
|
protected function newView(FormView $parent = null)
|
||||||
|
@ -25,9 +25,7 @@ interface ResolvedFormTypeFactoryInterface
|
|||||||
/**
|
/**
|
||||||
* Resolves a form type.
|
* Resolves a form type.
|
||||||
*
|
*
|
||||||
* @param FormTypeInterface $type
|
|
||||||
* @param FormTypeExtensionInterface[] $typeExtensions
|
* @param FormTypeExtensionInterface[] $typeExtensions
|
||||||
* @param ResolvedFormTypeInterface|null $parent
|
|
||||||
*
|
*
|
||||||
* @return ResolvedFormTypeInterface
|
* @return ResolvedFormTypeInterface
|
||||||
*
|
*
|
||||||
|
@ -51,9 +51,7 @@ interface ResolvedFormTypeInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a new form builder for this type.
|
* Creates a new form builder for this type.
|
||||||
*
|
*
|
||||||
* @param FormFactoryInterface $factory The form factory
|
|
||||||
* @param string $name The name for the builder
|
* @param string $name The name for the builder
|
||||||
* @param array $options The builder options
|
|
||||||
*
|
*
|
||||||
* @return FormBuilderInterface The created form builder
|
* @return FormBuilderInterface The created form builder
|
||||||
*/
|
*/
|
||||||
@ -62,18 +60,12 @@ interface ResolvedFormTypeInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a new form view for a form of this type.
|
* Creates a new form view for a form of this type.
|
||||||
*
|
*
|
||||||
* @param FormInterface $form The form to create a view for
|
|
||||||
* @param FormView $parent The parent view or null
|
|
||||||
*
|
|
||||||
* @return FormView The created form view
|
* @return FormView The created form view
|
||||||
*/
|
*/
|
||||||
public function createView(FormInterface $form, FormView $parent = null);
|
public function createView(FormInterface $form, FormView $parent = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures a form builder for the type hierarchy.
|
* Configures a form builder for the type hierarchy.
|
||||||
*
|
|
||||||
* @param FormBuilderInterface $builder The builder to configure
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options);
|
public function buildForm(FormBuilderInterface $builder, array $options);
|
||||||
|
|
||||||
@ -81,10 +73,6 @@ interface ResolvedFormTypeInterface
|
|||||||
* Configures a form view for the type hierarchy.
|
* Configures a form view for the type hierarchy.
|
||||||
*
|
*
|
||||||
* It is called before the children of the view are built.
|
* It is called before the children of the view are built.
|
||||||
*
|
|
||||||
* @param FormView $view The form view to configure
|
|
||||||
* @param FormInterface $form The form corresponding to the view
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function buildView(FormView $view, FormInterface $form, array $options);
|
public function buildView(FormView $view, FormInterface $form, array $options);
|
||||||
|
|
||||||
@ -92,10 +80,6 @@ interface ResolvedFormTypeInterface
|
|||||||
* Finishes a form view for the type hierarchy.
|
* Finishes a form view for the type hierarchy.
|
||||||
*
|
*
|
||||||
* It is called after the children of the view have been built.
|
* It is called after the children of the view have been built.
|
||||||
*
|
|
||||||
* @param FormView $view The form view to configure
|
|
||||||
* @param FormInterface $form The form corresponding to the view
|
|
||||||
* @param array $options The options used for the configuration
|
|
||||||
*/
|
*/
|
||||||
public function finishView(FormView $view, FormInterface $form, array $options);
|
public function finishView(FormView $view, FormInterface $form, array $options);
|
||||||
|
|
||||||
|
@ -55,7 +55,6 @@ abstract class AbstractFormTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param EventDispatcherInterface $dispatcher
|
|
||||||
* @param string|null $dataClass
|
* @param string|null $dataClass
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*
|
*
|
||||||
|
@ -745,11 +745,6 @@ class Request
|
|||||||
return null !== $this->session;
|
return null !== $this->session;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the Session.
|
|
||||||
*
|
|
||||||
* @param SessionInterface $session The Session
|
|
||||||
*/
|
|
||||||
public function setSession(SessionInterface $session)
|
public function setSession(SessionInterface $session)
|
||||||
{
|
{
|
||||||
$this->session = $session;
|
$this->session = $session;
|
||||||
|
@ -29,7 +29,6 @@ class MockFileSessionStorage extends MockArraySessionStorage
|
|||||||
/**
|
/**
|
||||||
* @param string $savePath Path of directory to save session files
|
* @param string $savePath Path of directory to save session files
|
||||||
* @param string $name Session name
|
* @param string $name Session name
|
||||||
* @param MetadataBag $metaBag MetadataBag instance
|
|
||||||
*/
|
*/
|
||||||
public function __construct(string $savePath = null, string $name = 'MOCKSESSID', MetadataBag $metaBag = null)
|
public function __construct(string $savePath = null, string $name = 'MOCKSESSID', MetadataBag $metaBag = null)
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,6 @@ class NativeSessionStorage implements SessionStorageInterface
|
|||||||
*
|
*
|
||||||
* @param array $options Session configuration options
|
* @param array $options Session configuration options
|
||||||
* @param \SessionHandlerInterface|null $handler
|
* @param \SessionHandlerInterface|null $handler
|
||||||
* @param MetadataBag $metaBag MetadataBag
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $options = [], $handler = null, MetadataBag $metaBag = null)
|
public function __construct(array $options = [], $handler = null, MetadataBag $metaBag = null)
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,6 @@ class PhpBridgeSessionStorage extends NativeSessionStorage
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param \SessionHandlerInterface|null $handler
|
* @param \SessionHandlerInterface|null $handler
|
||||||
* @param MetadataBag $metaBag MetadataBag
|
|
||||||
*/
|
*/
|
||||||
public function __construct($handler = null, MetadataBag $metaBag = null)
|
public function __construct($handler = null, MetadataBag $metaBag = null)
|
||||||
{
|
{
|
||||||
|
@ -34,10 +34,7 @@ class Client extends AbstractBrowser
|
|||||||
private $catchExceptions = true;
|
private $catchExceptions = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param HttpKernelInterface $kernel An HttpKernel instance
|
|
||||||
* @param array $server The server parameters (equivalent of $_SERVER)
|
* @param array $server The server parameters (equivalent of $_SERVER)
|
||||||
* @param History $history A History instance to store the browser history
|
|
||||||
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
|
|
||||||
*/
|
*/
|
||||||
public function __construct(HttpKernelInterface $kernel, array $server = [], History $history = null, CookieJar $cookieJar = null)
|
public function __construct(HttpKernelInterface $kernel, array $server = [], History $history = null, CookieJar $cookieJar = null)
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,6 @@ interface ArgumentResolverInterface
|
|||||||
/**
|
/**
|
||||||
* Returns the arguments to pass to the controller.
|
* Returns the arguments to pass to the controller.
|
||||||
*
|
*
|
||||||
* @param Request $request
|
|
||||||
* @param callable $controller
|
* @param callable $controller
|
||||||
*
|
*
|
||||||
* @return array An array of arguments to pass to the controller
|
* @return array An array of arguments to pass to the controller
|
||||||
|
@ -24,9 +24,6 @@ interface ArgumentValueResolverInterface
|
|||||||
/**
|
/**
|
||||||
* Whether this resolver can resolve the value for the given ArgumentMetadata.
|
* Whether this resolver can resolve the value for the given ArgumentMetadata.
|
||||||
*
|
*
|
||||||
* @param Request $request
|
|
||||||
* @param ArgumentMetadata $argument
|
|
||||||
*
|
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function supports(Request $request, ArgumentMetadata $argument);
|
public function supports(Request $request, ArgumentMetadata $argument);
|
||||||
@ -34,9 +31,6 @@ interface ArgumentValueResolverInterface
|
|||||||
/**
|
/**
|
||||||
* Returns the possible value(s).
|
* Returns the possible value(s).
|
||||||
*
|
*
|
||||||
* @param Request $request
|
|
||||||
* @param ArgumentMetadata $argument
|
|
||||||
*
|
|
||||||
* @return iterable
|
* @return iterable
|
||||||
*/
|
*/
|
||||||
public function resolve(Request $request, ArgumentMetadata $argument);
|
public function resolve(Request $request, ArgumentMetadata $argument);
|
||||||
|
@ -27,8 +27,6 @@ class KernelEvent extends Event
|
|||||||
private $requestType;
|
private $requestType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param HttpKernelInterface $kernel The kernel in which this event was thrown
|
|
||||||
* @param Request $request The request the kernel is currently processing
|
|
||||||
* @param int $requestType The request type the kernel is currently processing; one of
|
* @param int $requestType The request type the kernel is currently processing; one of
|
||||||
* HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST
|
* HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +51,6 @@ class DebugHandlersListener implements EventSubscriberInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param callable|null $exceptionHandler A handler that will be called on Exception
|
* @param callable|null $exceptionHandler A handler that will be called on Exception
|
||||||
* @param LoggerInterface|null $logger A PSR-3 logger
|
|
||||||
* @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
|
* @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
|
||||||
* @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value
|
* @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value
|
||||||
* @param bool $scream Enables/disables screaming mode, where even silenced errors are logged
|
* @param bool $scream Enables/disables screaming mode, where even silenced errors are logged
|
||||||
|
@ -47,10 +47,6 @@ class ExceptionListener implements EventSubscriberInterface
|
|||||||
$this->logException($event->getException(), sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', $e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()));
|
$this->logException($event->getException(), sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', $e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $eventName
|
|
||||||
* @param EventDispatcherInterface $eventDispatcher
|
|
||||||
*/
|
|
||||||
public function onKernelException(GetResponseForExceptionEvent $event)
|
public function onKernelException(GetResponseForExceptionEvent $event)
|
||||||
{
|
{
|
||||||
if (null === $this->controller) {
|
if (null === $this->controller) {
|
||||||
@ -123,9 +119,6 @@ class ExceptionListener implements EventSubscriberInterface
|
|||||||
/**
|
/**
|
||||||
* Clones the request for the exception.
|
* Clones the request for the exception.
|
||||||
*
|
*
|
||||||
* @param \Exception $exception The thrown exception
|
|
||||||
* @param Request $request The original request
|
|
||||||
*
|
|
||||||
* @return Request The cloned request
|
* @return Request The cloned request
|
||||||
*/
|
*/
|
||||||
protected function duplicateRequest(\Exception $exception, Request $request)
|
protected function duplicateRequest(\Exception $exception, Request $request)
|
||||||
|
@ -52,7 +52,6 @@ class RouterListener implements EventSubscriberInterface
|
|||||||
/**
|
/**
|
||||||
* @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher
|
* @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher
|
||||||
* @param RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
|
* @param RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
|
||||||
* @param LoggerInterface|null $logger The logger
|
|
||||||
* @param string $projectDir
|
* @param string $projectDir
|
||||||
* @param bool $debug
|
* @param bool $debug
|
||||||
*
|
*
|
||||||
@ -90,8 +89,6 @@ class RouterListener implements EventSubscriberInterface
|
|||||||
/**
|
/**
|
||||||
* After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator
|
* After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator
|
||||||
* operates on the correct context again.
|
* operates on the correct context again.
|
||||||
*
|
|
||||||
* @param FinishRequestEvent $event
|
|
||||||
*/
|
*/
|
||||||
public function onKernelFinishRequest(FinishRequestEvent $event)
|
public function onKernelFinishRequest(FinishRequestEvent $event)
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere
|
|||||||
* instance of InlineFragmentRenderer.
|
* instance of InlineFragmentRenderer.
|
||||||
*
|
*
|
||||||
* @param FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported
|
* @param FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported
|
||||||
* @param UriSigner $signer
|
|
||||||
*/
|
*/
|
||||||
public function __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null)
|
public function __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null)
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ class FragmentHandler
|
|||||||
private $requestStack;
|
private $requestStack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param RequestStack $requestStack The Request stack that controls the lifecycle of requests
|
|
||||||
* @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances
|
* @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances
|
||||||
* @param bool $debug Whether the debug mode is enabled or not
|
* @param bool $debug Whether the debug mode is enabled or not
|
||||||
*/
|
*/
|
||||||
|
@ -34,9 +34,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param EngineInterface|Environment $templating An EngineInterface or a Twig instance
|
* @param EngineInterface|Environment $templating An EngineInterface or a Twig instance
|
||||||
* @param UriSigner $signer A UriSigner instance
|
|
||||||
* @param string $globalDefaultTemplate The global default content (it can be a template name or the content)
|
* @param string $globalDefaultTemplate The global default content (it can be a template name or the content)
|
||||||
* @param string $charset
|
|
||||||
*/
|
*/
|
||||||
public function __construct($templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
|
public function __construct($templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
|
||||||
{
|
{
|
||||||
|
@ -716,8 +716,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
/**
|
/**
|
||||||
* Dumps the service container to PHP code in the cache.
|
* Dumps the service container to PHP code in the cache.
|
||||||
*
|
*
|
||||||
* @param ConfigCache $cache The config cache
|
|
||||||
* @param ContainerBuilder $container The service container
|
|
||||||
* @param string $class The name of the class to generate
|
* @param string $class The name of the class to generate
|
||||||
* @param string $baseClass The name of the container's base class
|
* @param string $baseClass The name of the container's base class
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,6 @@ class BufferedBundleReader implements BundleReaderInterface
|
|||||||
/**
|
/**
|
||||||
* Buffers a given reader.
|
* Buffers a given reader.
|
||||||
*
|
*
|
||||||
* @param BundleReaderInterface $reader The reader to buffer
|
|
||||||
* @param int $bufferSize The number of entries to store in the buffer
|
* @param int $bufferSize The number of entries to store in the buffer
|
||||||
*/
|
*/
|
||||||
public function __construct(BundleReaderInterface $reader, int $bufferSize)
|
public function __construct(BundleReaderInterface $reader, int $bufferSize)
|
||||||
|
@ -91,7 +91,6 @@ abstract class AbstractDataGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param LocaleScanner $scanner
|
|
||||||
* @param string $sourceDir
|
* @param string $sourceDir
|
||||||
*
|
*
|
||||||
* @return string[]
|
* @return string[]
|
||||||
|
@ -40,7 +40,6 @@ class GeneratorConfig
|
|||||||
* Adds a writer to be used during the data conversion.
|
* Adds a writer to be used during the data conversion.
|
||||||
*
|
*
|
||||||
* @param string $targetDir The output directory
|
* @param string $targetDir The output directory
|
||||||
* @param BundleWriterInterface $writer The writer instance
|
|
||||||
*/
|
*/
|
||||||
public function addBundleWriter($targetDir, BundleWriterInterface $writer)
|
public function addBundleWriter($targetDir, BundleWriterInterface $writer)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,6 @@ class CurrencyDataProvider
|
|||||||
* resource bundle.
|
* resource bundle.
|
||||||
*
|
*
|
||||||
* @param string $path The path to the resource bundle
|
* @param string $path The path to the resource bundle
|
||||||
* @param BundleEntryReaderInterface $reader The reader for reading the resource bundle
|
|
||||||
*/
|
*/
|
||||||
public function __construct(string $path, BundleEntryReaderInterface $reader)
|
public function __construct(string $path, BundleEntryReaderInterface $reader)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ class LanguageDataProvider
|
|||||||
* Creates a data provider that reads locale-related data from .res files.
|
* Creates a data provider that reads locale-related data from .res files.
|
||||||
*
|
*
|
||||||
* @param string $path The path to the directory containing the .res files
|
* @param string $path The path to the directory containing the .res files
|
||||||
* @param BundleEntryReaderInterface $reader The reader for reading the .res files
|
|
||||||
*/
|
*/
|
||||||
public function __construct(string $path, BundleEntryReaderInterface $reader)
|
public function __construct(string $path, BundleEntryReaderInterface $reader)
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user