Remove unneeded phpdocs
This commit is contained in:
parent
2273de0011
commit
692a6e7495
@ -45,8 +45,7 @@ class DoctrineDataCollector extends DataCollector
|
||||
/**
|
||||
* Adds the stack logger for a connection.
|
||||
*
|
||||
* @param string $name
|
||||
* @param DebugStack $logger
|
||||
* @param string $name
|
||||
*/
|
||||
public function addLogger($name, DebugStack $logger)
|
||||
{
|
||||
|
@ -171,8 +171,7 @@ abstract class AbstractDoctrineExtension extends Extension
|
||||
/**
|
||||
* Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
|
||||
*
|
||||
* @param array $objectManager
|
||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
||||
* @param array $objectManager
|
||||
*/
|
||||
protected function registerMappingDrivers($objectManager, ContainerBuilder $container)
|
||||
{
|
||||
@ -251,8 +250,7 @@ abstract class AbstractDoctrineExtension extends Extension
|
||||
/**
|
||||
* Detects what metadata driver to use for the supplied directory.
|
||||
*
|
||||
* @param string $dir A directory path
|
||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
||||
* @param string $dir A directory path
|
||||
*
|
||||
* @return string|null A metadata driver short name, if one can be detected
|
||||
*/
|
||||
@ -285,9 +283,8 @@ abstract class AbstractDoctrineExtension extends Extension
|
||||
/**
|
||||
* Loads a configured object manager metadata, query or result cache driver.
|
||||
*
|
||||
* @param array $objectManager A configured object manager
|
||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
||||
* @param string $cacheName
|
||||
* @param array $objectManager A configured object manager
|
||||
* @param string $cacheName
|
||||
*
|
||||
* @throws \InvalidArgumentException in case of unknown driver type
|
||||
*/
|
||||
@ -299,10 +296,9 @@ abstract class AbstractDoctrineExtension extends Extension
|
||||
/**
|
||||
* Loads a cache driver.
|
||||
*
|
||||
* @param string $cacheName The cache driver name
|
||||
* @param string $objectManagerName The object manager name
|
||||
* @param array $cacheDriver The cache driver mapping
|
||||
* @param ContainerBuilder $container The ContainerBuilder instance
|
||||
* @param string $cacheName The cache driver name
|
||||
* @param string $objectManagerName The object manager name
|
||||
* @param array $cacheDriver The cache driver mapping
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
|
@ -40,10 +40,7 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
||||
* passed which optimizes the object loading for one of the Doctrine
|
||||
* mapper implementations.
|
||||
*
|
||||
* @param ObjectManager $manager The object manager
|
||||
* @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
|
||||
* @param string $class The class name of the loaded objects
|
||||
*/
|
||||
public function __construct(ObjectManager $manager, string $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
|
||||
{
|
||||
|
@ -32,11 +32,6 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
|
||||
*/
|
||||
private $queryBuilder;
|
||||
|
||||
/**
|
||||
* Construct an ORM Query Builder Loader.
|
||||
*
|
||||
* @param QueryBuilder $queryBuilder The query builder for creating the query builder
|
||||
*/
|
||||
public function __construct(QueryBuilder $queryBuilder)
|
||||
{
|
||||
$this->queryBuilder = $queryBuilder;
|
||||
|
@ -265,9 +265,8 @@ abstract class DoctrineType extends AbstractType implements ResetInterface
|
||||
/**
|
||||
* Return the default loader object.
|
||||
*
|
||||
* @param ObjectManager $manager
|
||||
* @param mixed $queryBuilder
|
||||
* @param string $class
|
||||
* @param mixed $queryBuilder
|
||||
* @param string $class
|
||||
*
|
||||
* @return EntityLoaderInterface
|
||||
*/
|
||||
|
@ -46,9 +46,8 @@ class EntityType extends DoctrineType
|
||||
/**
|
||||
* Return the default loader object.
|
||||
*
|
||||
* @param ObjectManager $manager
|
||||
* @param QueryBuilder $queryBuilder
|
||||
* @param string $class
|
||||
* @param QueryBuilder $queryBuilder
|
||||
* @param string $class
|
||||
*
|
||||
* @return ORMQueryBuilderLoader
|
||||
*/
|
||||
|
@ -31,8 +31,6 @@ class DoctrineTestHelper
|
||||
/**
|
||||
* Returns an entity manager for testing.
|
||||
*
|
||||
* @param Configuration|null $config
|
||||
*
|
||||
* @return EntityManager
|
||||
*/
|
||||
public static function createTestEntityManager(Configuration $config = null)
|
||||
|
@ -34,8 +34,7 @@ class UniqueEntityValidator extends ConstraintValidator
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $entity
|
||||
* @param Constraint $constraint
|
||||
* @param object $entity
|
||||
*
|
||||
* @throws UnexpectedTypeException
|
||||
* @throws ConstraintDefinitionException
|
||||
|
@ -81,8 +81,7 @@ abstract class AbstractPhpFileCacheWarmer implements CacheWarmerInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $cacheDir
|
||||
* @param ArrayAdapter $arrayAdapter
|
||||
* @param string $cacheDir
|
||||
*
|
||||
* @return bool false if there is nothing to warm-up
|
||||
*/
|
||||
|
@ -34,9 +34,7 @@ class TemplateFinder implements TemplateFinderInterface
|
||||
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)
|
||||
{
|
||||
|
@ -133,7 +133,6 @@ abstract class Descriptor implements DescriptorInterface
|
||||
*
|
||||
* @param Definition|Alias|object $service
|
||||
* @param array $options
|
||||
* @param ContainerBuilder|null $builder
|
||||
*/
|
||||
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
|
||||
|
||||
@ -224,8 +223,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param string $serviceId
|
||||
* @param string $serviceId
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@ -249,8 +247,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param bool $showHidden
|
||||
* @param bool $showHidden
|
||||
*
|
||||
* @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
|
||||
* and 410 otherwise.
|
||||
*
|
||||
* @param Request $request The request instance
|
||||
* @param string $route The route name to redirect to
|
||||
* @param bool $permanent Whether the redirection is permanent
|
||||
* @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
|
||||
* and 410 otherwise.
|
||||
*
|
||||
* @param Request $request The request instance
|
||||
* @param string $path The absolute path or URL to redirect to
|
||||
* @param bool $permanent Whether the redirect is permanent or not
|
||||
* @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->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard');
|
||||
*
|
||||
* @param RouteCollectionBuilder $routes
|
||||
*/
|
||||
abstract protected function configureRoutes(RouteCollectionBuilder $routes);
|
||||
|
||||
@ -50,9 +48,6 @@ trait MicroKernelTrait
|
||||
* Or parameters:
|
||||
*
|
||||
* $c->setParameter('halloween', 'lot of fun');
|
||||
*
|
||||
* @param ContainerBuilder $c
|
||||
* @param LoaderInterface $loader
|
||||
*/
|
||||
abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);
|
||||
|
||||
|
@ -28,9 +28,8 @@ interface EngineInterface extends BaseEngineInterface
|
||||
/**
|
||||
* Renders a view and returns a Response.
|
||||
*
|
||||
* @param string $view The view name
|
||||
* @param array $parameters An array of parameters to pass to the view
|
||||
* @param Response $response A Response instance
|
||||
* @param string $view The view name
|
||||
* @param array $parameters An array of parameters to pass to the view
|
||||
*
|
||||
* @return Response A Response instance
|
||||
*
|
||||
|
@ -47,7 +47,6 @@ class FormHelper extends Helper
|
||||
*
|
||||
* The theme format is "<Bundle>:<Controller>".
|
||||
*
|
||||
* @param FormView $view A FormView instance
|
||||
* @param string|array $themes A theme or an array of theme
|
||||
* @param bool $useDefaultThemes If true, will use default themes defined in the renderer
|
||||
*/
|
||||
@ -75,8 +74,7 @@ class FormHelper extends Helper
|
||||
* form individually. You can also create a custom form theme to adapt
|
||||
* 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
|
||||
*/
|
||||
@ -92,8 +90,7 @@ class FormHelper extends Helper
|
||||
*
|
||||
* <?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
|
||||
*/
|
||||
@ -109,8 +106,7 @@ class FormHelper extends Helper
|
||||
*
|
||||
* <?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
|
||||
*/
|
||||
@ -132,8 +128,7 @@ class FormHelper extends Helper
|
||||
*
|
||||
* <?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
|
||||
*/
|
||||
@ -145,8 +140,7 @@ class FormHelper extends Helper
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@ -158,9 +152,8 @@ class FormHelper extends Helper
|
||||
/**
|
||||
* Renders the label of the given view.
|
||||
*
|
||||
* @param FormView $view The view for which to render the label
|
||||
* @param string $label The label
|
||||
* @param array $variables Additional variables passed to the template
|
||||
* @param string $label The label
|
||||
* @param array $variables Additional variables passed to the template
|
||||
*
|
||||
* @return string The HTML markup
|
||||
*/
|
||||
@ -176,8 +169,6 @@ class FormHelper extends Helper
|
||||
/**
|
||||
* Renders the help of the given view.
|
||||
*
|
||||
* @param FormView $view The parent view
|
||||
*
|
||||
* @return string The HTML markup
|
||||
*/
|
||||
public function help(FormView $view): string
|
||||
@ -198,8 +189,7 @@ class FormHelper extends Helper
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@ -211,9 +201,8 @@ class FormHelper extends Helper
|
||||
/**
|
||||
* 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 array $variables The variable to pass to the template
|
||||
* @param string $blockName The name of the block to render
|
||||
* @param array $variables The variable to pass to the template
|
||||
*
|
||||
* @return string The HTML markup
|
||||
*/
|
||||
|
@ -31,8 +31,7 @@ class TemplateLocator implements FileLocatorInterface
|
||||
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)
|
||||
{
|
||||
|
@ -98,10 +98,9 @@ abstract class AbstractFactory implements SecurityFactoryInterface
|
||||
* Subclasses must return the id of a service which implements the
|
||||
* AuthenticationProviderInterface.
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $id The unique id of the firewall
|
||||
* @param array $config The options array for this listener
|
||||
* @param string $userProviderId The id of the user provider
|
||||
* @param string $id The unique id of the firewall
|
||||
* @param array $config The options array for this listener
|
||||
* @param string $userProviderId The id of the user provider
|
||||
*
|
||||
* @return string never null, the id of the authentication provider
|
||||
*/
|
||||
|
@ -24,11 +24,10 @@ interface SecurityFactoryInterface
|
||||
/**
|
||||
* Configures the container services required to use the authentication listener.
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $id The unique id of the firewall
|
||||
* @param array $config The options array for the listener
|
||||
* @param string $userProvider The service id of the user provider
|
||||
* @param string $defaultEntryPoint
|
||||
* @param string $id The unique id of the firewall
|
||||
* @param array $config The options array for the listener
|
||||
* @param string $userProvider The service id of the user provider
|
||||
* @param string $defaultEntryPoint
|
||||
*
|
||||
* @return array containing three values:
|
||||
* - the provider id
|
||||
|
@ -33,8 +33,6 @@ class VoteListener implements EventSubscriberInterface
|
||||
|
||||
/**
|
||||
* Event dispatched by a voter during access manager decision.
|
||||
*
|
||||
* @param VoteEvent $event event with voter data
|
||||
*/
|
||||
public function onVoterVote(VoteEvent $event)
|
||||
{
|
||||
|
@ -36,8 +36,7 @@ class ExceptionController
|
||||
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)
|
||||
{
|
||||
@ -92,10 +91,9 @@ class ExceptionController
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param string $format
|
||||
* @param int $code An HTTP response status code
|
||||
* @param bool $showException
|
||||
* @param string $format
|
||||
* @param int $code An HTTP response status code
|
||||
* @param bool $showException
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -64,8 +64,7 @@ class ProfilerController
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
@ -110,8 +109,7 @@ class ProfilerController
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
@ -212,8 +210,7 @@ class ProfilerController
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
@ -43,8 +43,7 @@ class TemplateManager
|
||||
/**
|
||||
* Gets the template name for a given panel.
|
||||
*
|
||||
* @param Profile $profile
|
||||
* @param string $panel
|
||||
* @param string $panel
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
|
@ -26,8 +26,7 @@ class 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 = [])
|
||||
{
|
||||
@ -46,8 +45,7 @@ class Packages
|
||||
/**
|
||||
* Adds a package.
|
||||
*
|
||||
* @param string $name The package name
|
||||
* @param PackageInterface $package The package
|
||||
* @param string $name The package name
|
||||
*/
|
||||
public function addPackage($name, PackageInterface $package)
|
||||
{
|
||||
|
@ -29,9 +29,7 @@ class PathPackage extends Package
|
||||
private $basePath;
|
||||
|
||||
/**
|
||||
* @param string $basePath The base path to be prepended to relative paths
|
||||
* @param VersionStrategyInterface $versionStrategy The version strategy
|
||||
* @param ContextInterface|null $context The context
|
||||
* @param string $basePath The base path to be prepended to relative paths
|
||||
*/
|
||||
public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
||||
{
|
||||
|
@ -39,9 +39,7 @@ class UrlPackage extends Package
|
||||
private $sslPackage;
|
||||
|
||||
/**
|
||||
* @param string|string[] $baseUrls Base asset URLs
|
||||
* @param VersionStrategyInterface $versionStrategy The version strategy
|
||||
* @param ContextInterface|null $context Context
|
||||
* @param string|string[] $baseUrls Base asset URLs
|
||||
*/
|
||||
public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
|
||||
{
|
||||
|
@ -50,9 +50,7 @@ abstract class Client
|
||||
private $isMainRequest = true;
|
||||
|
||||
/**
|
||||
* @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
|
||||
* @param array $server The server parameters (equivalent of $_SERVER)
|
||||
*/
|
||||
public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
|
||||
{
|
||||
@ -309,7 +307,6 @@ abstract class Client
|
||||
/**
|
||||
* Submits a form.
|
||||
*
|
||||
* @param Form $form A Form instance
|
||||
* @param array $values An array of form field values
|
||||
* @param array $serverParameters An array of server parameters
|
||||
*
|
||||
@ -498,8 +495,6 @@ abstract class Client
|
||||
/**
|
||||
* Filters the BrowserKit request to the origin one.
|
||||
*
|
||||
* @param Request $request The BrowserKit Request to filter
|
||||
*
|
||||
* @return object An origin request instance
|
||||
*/
|
||||
protected function filterRequest(Request $request)
|
||||
@ -706,8 +701,7 @@ abstract class Client
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
@ -99,11 +99,10 @@ abstract class AbstractAdapter implements AdapterInterface, CacheInterface, Logg
|
||||
*
|
||||
* Using ApcuAdapter makes system caches compatible with read-only filesystems.
|
||||
*
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $version
|
||||
* @param string $directory
|
||||
* @param LoggerInterface|null $logger
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $version
|
||||
* @param string $directory
|
||||
*
|
||||
* @return AdapterInterface
|
||||
*/
|
||||
|
@ -71,7 +71,6 @@ class RedisTagAwareAdapter extends AbstractTagAwareAdapter
|
||||
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client
|
||||
* @param string $namespace The default namespace
|
||||
* @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.
|
||||
*/
|
||||
|
@ -30,8 +30,7 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter
|
||||
private $instances = [];
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param TraceableAdapter $instance
|
||||
* @param string $name
|
||||
*/
|
||||
public function addInstance($name, TraceableAdapter $instance)
|
||||
{
|
||||
|
@ -37,9 +37,8 @@ class TreeBuilder implements NodeParentInterface
|
||||
/**
|
||||
* Creates the root node.
|
||||
*
|
||||
* @param string $name The name of the root node
|
||||
* @param string $type The type of the root node
|
||||
* @param NodeBuilder $builder A custom node builder instance
|
||||
* @param string $name The name of the root node
|
||||
* @param string $type The type of the root node
|
||||
*
|
||||
* @return ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array')
|
||||
*
|
||||
|
@ -23,8 +23,7 @@ class Processor
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
@ -42,8 +41,7 @@ class Processor
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
@ -30,8 +30,6 @@ interface ResourceCheckerInterface
|
||||
* Queries the ResourceChecker whether it can validate a given
|
||||
* 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
|
||||
*/
|
||||
public function supports(ResourceInterface $metadata);
|
||||
@ -39,8 +37,7 @@ interface ResourceCheckerInterface
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
@ -25,8 +25,7 @@ class ContainerCommandLoader implements CommandLoaderInterface
|
||||
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)
|
||||
{
|
||||
|
@ -23,9 +23,8 @@ interface DescriptorInterface
|
||||
/**
|
||||
* Describes an object if supported.
|
||||
*
|
||||
* @param OutputInterface $output
|
||||
* @param object $object
|
||||
* @param array $options
|
||||
* @param object $object
|
||||
* @param array $options
|
||||
*/
|
||||
public function describe(OutputInterface $output, $object, array $options = []);
|
||||
}
|
||||
|
@ -81,7 +81,6 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Application $application
|
||||
* @param string|null $namespace
|
||||
*
|
||||
* @return \DOMDocument
|
||||
|
@ -35,8 +35,7 @@ interface OutputFormatterInterface
|
||||
/**
|
||||
* Sets a new style.
|
||||
*
|
||||
* @param string $name The style name
|
||||
* @param OutputFormatterStyleInterface $style The style instance
|
||||
* @param string $name The style name
|
||||
*/
|
||||
public function setStyle($name, OutputFormatterStyleInterface $style);
|
||||
|
||||
|
@ -48,9 +48,8 @@ class DescriptorHelper extends Helper
|
||||
* * format: string, the output format name
|
||||
* * raw_text: boolean, sets output type as raw
|
||||
*
|
||||
* @param OutputInterface $output
|
||||
* @param object $object
|
||||
* @param array $options
|
||||
* @param object $object
|
||||
* @param array $options
|
||||
*
|
||||
* @throws InvalidArgumentException when the given format is not supported
|
||||
*/
|
||||
@ -72,8 +71,7 @@ class DescriptorHelper extends Helper
|
||||
/**
|
||||
* Registers a descriptor.
|
||||
*
|
||||
* @param string $format
|
||||
* @param DescriptorInterface $descriptor
|
||||
* @param string $format
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
@ -40,8 +40,7 @@ class HelperSet implements \IteratorAggregate
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
|
@ -28,12 +28,11 @@ class ProcessHelper extends Helper
|
||||
/**
|
||||
* 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 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
|
||||
* output available on STDOUT or STDERR
|
||||
* @param int $verbosity The threshold for verbosity
|
||||
* @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 callable|null $callback A PHP callback to run whenever there is some
|
||||
* output available on STDOUT or STDERR
|
||||
* @param int $verbosity The threshold for verbosity
|
||||
*
|
||||
* @return Process The process that ran
|
||||
*/
|
||||
@ -92,11 +91,10 @@ class ProcessHelper extends Helper
|
||||
* This is identical to run() except that an exception is thrown if the process
|
||||
* 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|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
|
||||
* output available on STDOUT or STDERR
|
||||
* @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 callable|null $callback A PHP callback to run whenever there is some
|
||||
* output available on STDOUT or STDERR
|
||||
*
|
||||
* @return Process The process that ran
|
||||
*
|
||||
@ -118,10 +116,6 @@ class ProcessHelper extends Helper
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null)
|
||||
|
@ -34,10 +34,9 @@ class ProgressIndicator
|
||||
private static $formats;
|
||||
|
||||
/**
|
||||
* @param OutputInterface $output
|
||||
* @param string|null $format Indicator format
|
||||
* @param int $indicatorChangeInterval Change interval in milliseconds
|
||||
* @param array|null $indicatorValues Animated indicator characters
|
||||
* @param string|null $format Indicator format
|
||||
* @param int $indicatorChangeInterval Change interval in milliseconds
|
||||
* @param array|null $indicatorValues Animated indicator characters
|
||||
*/
|
||||
public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null)
|
||||
{
|
||||
|
@ -102,8 +102,7 @@ class Table
|
||||
/**
|
||||
* Sets a style definition.
|
||||
*
|
||||
* @param string $name The style name
|
||||
* @param TableStyle $style A TableStyle instance
|
||||
* @param string $name The style name
|
||||
*/
|
||||
public static function setStyleDefinition($name, TableStyle $style)
|
||||
{
|
||||
|
@ -44,8 +44,7 @@ class ArgvInput extends Input
|
||||
private $parsed;
|
||||
|
||||
/**
|
||||
* @param array|null $argv An array of parameters from the CLI (in the argv format)
|
||||
* @param InputDefinition|null $definition A InputDefinition instance
|
||||
* @param array|null $argv An array of parameters from the CLI (in the argv format)
|
||||
*/
|
||||
public function __construct(array $argv = null, InputDefinition $definition = null)
|
||||
{
|
||||
|
@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException
|
||||
{
|
||||
/**
|
||||
* @param string $expectedValue
|
||||
* @param Token $foundToken
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
|
@ -30,9 +30,8 @@ class FunctionNode extends AbstractNode
|
||||
private $arguments;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $name
|
||||
* @param Token[] $arguments
|
||||
* @param string $name
|
||||
* @param Token[] $arguments
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, string $name, array $arguments = [])
|
||||
{
|
||||
|
@ -176,9 +176,8 @@ class ErrorHandler
|
||||
/**
|
||||
* 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 bool $replace Whether to replace or not any existing logger
|
||||
* @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
|
||||
*/
|
||||
public function setDefaultLogger(LoggerInterface $logger, $levels = E_ALL, $replace = false)
|
||||
{
|
||||
|
@ -27,8 +27,7 @@ interface FatalErrorHandlerInterface
|
||||
/**
|
||||
* Attempts to convert an error into an exception.
|
||||
*
|
||||
* @param array $error An array as returned by error_get_last()
|
||||
* @param FatalErrorException $exception A FatalErrorException instance
|
||||
* @param array $error An array as returned by error_get_last()
|
||||
*
|
||||
* @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
|
||||
*/
|
||||
|
@ -105,8 +105,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param bool $required
|
||||
* @param bool $required
|
||||
*
|
||||
* @return \ReflectionFunctionAbstract|null
|
||||
*
|
||||
@ -161,8 +160,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param string $method
|
||||
* @param string $method
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
|
@ -54,9 +54,8 @@ class Compiler
|
||||
/**
|
||||
* Adds a pass to the PassConfig.
|
||||
*
|
||||
* @param CompilerPassInterface $pass A compiler pass
|
||||
* @param string $type The type of the pass
|
||||
* @param int $priority Used to sort the passes
|
||||
* @param string $type The type of the pass
|
||||
* @param int $priority Used to sort the passes
|
||||
*/
|
||||
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
|
||||
{
|
||||
|
@ -113,9 +113,8 @@ class PassConfig
|
||||
/**
|
||||
* Adds a pass.
|
||||
*
|
||||
* @param CompilerPassInterface $pass A Compiler pass
|
||||
* @param string $type The pass type
|
||||
* @param int $priority Used to sort the passes
|
||||
* @param string $type The pass type
|
||||
* @param int $priority Used to sort the passes
|
||||
*
|
||||
* @throws InvalidArgumentException when a pass type doesn't exist
|
||||
*/
|
||||
|
@ -87,9 +87,8 @@ final class ServiceLocatorTagPass extends AbstractRecursivePass
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $container
|
||||
* @param Reference[] $refMap
|
||||
* @param string|null $callerId
|
||||
* @param Reference[] $refMap
|
||||
* @param string|null $callerId
|
||||
*
|
||||
* @return Reference
|
||||
*/
|
||||
|
@ -446,9 +446,8 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
||||
/**
|
||||
* Adds a compiler pass.
|
||||
*
|
||||
* @param CompilerPassInterface $pass A compiler pass
|
||||
* @param string $type The type of compiler pass
|
||||
* @param int $priority Used to sort the passes
|
||||
* @param string $type The type of compiler pass
|
||||
* @param int $priority Used to sort the passes
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@ -974,8 +973,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
||||
/**
|
||||
* Sets a service definition.
|
||||
*
|
||||
* @param string $id The service identifier
|
||||
* @param Definition $definition A Definition instance
|
||||
* @param string $id The service identifier
|
||||
*
|
||||
* @return Definition the service definition
|
||||
*
|
||||
|
@ -25,10 +25,8 @@ interface InstantiatorInterface
|
||||
/**
|
||||
* 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 callable $realInstantiator Zero-argument callback that is capable of producing the real service instance
|
||||
* @param string $id Identifier of the requested service
|
||||
* @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
|
@ -30,9 +30,8 @@ interface DumperInterface
|
||||
/**
|
||||
* 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 $factoryCode The code to execute to create the service
|
||||
* @param string $id Service identifier
|
||||
* @param string $factoryCode The code to execute to create the service
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -86,8 +86,7 @@ abstract class FileLoader extends BaseFileLoader
|
||||
/**
|
||||
* Registers a definition in the container with its instanceof-conditionals.
|
||||
*
|
||||
* @param string $id
|
||||
* @param Definition $definition
|
||||
* @param string $id
|
||||
*/
|
||||
protected function setDefinition($id, Definition $definition)
|
||||
{
|
||||
|
@ -29,7 +29,6 @@ class ExpressionLanguage
|
||||
protected $functions = [];
|
||||
|
||||
/**
|
||||
* @param CacheItemPoolInterface $cache
|
||||
* @param ExpressionFunctionProviderInterface[] $providers
|
||||
*/
|
||||
public function __construct(CacheItemPoolInterface $cache = null, array $providers = [])
|
||||
|
@ -85,8 +85,7 @@ class Parser
|
||||
* variable 'container' can be used in the expression
|
||||
* 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
|
||||
*
|
||||
|
@ -191,8 +191,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
||||
*
|
||||
* This method should not be invoked.
|
||||
*
|
||||
* @param DataTransformerInterface $viewTransformer
|
||||
* @param bool $forcePrepend
|
||||
* @param bool $forcePrepend
|
||||
*
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
@ -218,8 +217,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
||||
*
|
||||
* This method should not be invoked.
|
||||
*
|
||||
* @param DataTransformerInterface $modelTransformer
|
||||
* @param bool $forceAppend
|
||||
* @param bool $forceAppend
|
||||
*
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
|
@ -90,9 +90,8 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @param ChoiceLoaderInterface $loader The choice loader
|
||||
* @param callable|string|PropertyPath|null $value The callable or path for
|
||||
* generating the choice values
|
||||
* @param callable|string|PropertyPath|null $value The callable or path for
|
||||
* generating the choice values
|
||||
*
|
||||
* @return ChoiceListInterface The choice list
|
||||
*/
|
||||
@ -121,7 +120,6 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @param ChoiceListInterface $list The choice list
|
||||
* @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 $index The callable or path generating the view indices
|
||||
|
@ -45,8 +45,7 @@ class LazyChoiceList implements ChoiceListInterface
|
||||
* The callable receives the choice as first and the array key as the second
|
||||
* 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)
|
||||
{
|
||||
|
@ -28,9 +28,8 @@ class CsrfExtension extends AbstractExtension
|
||||
private $translationDomain;
|
||||
|
||||
/**
|
||||
* @param CsrfTokenManagerInterface $tokenManager The CSRF token manager
|
||||
* @param TranslatorInterface|null $translator The translator for translating error messages
|
||||
* @param string|null $translationDomain The translation domain for translating
|
||||
* @param TranslatorInterface|null $translator The translator for translating error messages
|
||||
* @param string|null $translationDomain The translation domain for translating
|
||||
*/
|
||||
public function __construct(CsrfTokenManagerInterface $tokenManager, $translator = null, string $translationDomain = null)
|
||||
{
|
||||
|
@ -53,9 +53,6 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
@ -78,10 +75,6 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
|
@ -25,9 +25,8 @@ class DependencyInjectionExtension implements FormExtensionInterface
|
||||
private $guesserServices;
|
||||
|
||||
/**
|
||||
* @param ContainerInterface $typeContainer
|
||||
* @param iterable[] $typeExtensionServices
|
||||
* @param iterable $guesserServices
|
||||
* @param iterable[] $typeExtensionServices
|
||||
* @param iterable $guesserServices
|
||||
*/
|
||||
public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, iterable $guesserServices)
|
||||
{
|
||||
|
@ -187,7 +187,6 @@ class FormValidator extends ConstraintValidator
|
||||
* Post-processes the validation groups option for a given form.
|
||||
*
|
||||
* @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups
|
||||
* @param FormInterface $form The validated form
|
||||
*
|
||||
* @return (string|GroupSequence)[] The validation groups
|
||||
*/
|
||||
|
@ -41,11 +41,6 @@ class ValidationListener implements EventSubscriberInterface
|
||||
$this->violationMapper = $violationMapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the form and its domain object.
|
||||
*
|
||||
* @param FormEvent $event The event object
|
||||
*/
|
||||
public function validateForm(FormEvent $event)
|
||||
{
|
||||
$form = $event->getForm();
|
||||
|
@ -23,9 +23,7 @@ interface ViolationMapperInterface
|
||||
* Maps a constraint violation to a form in the form tree under
|
||||
* 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);
|
||||
}
|
||||
|
@ -47,8 +47,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
||||
* The reverseTransform method of the transformer is used to convert from the
|
||||
* 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
|
||||
*/
|
||||
@ -69,8 +68,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
||||
* The reverseTransform method of the transformer is used to convert from the
|
||||
* 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
|
||||
*/
|
||||
|
@ -116,8 +116,6 @@ class FormError
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
public function setOrigin(FormInterface $origin)
|
||||
|
@ -39,7 +39,6 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
private $errors;
|
||||
|
||||
/**
|
||||
* @param FormInterface $form The erroneous form
|
||||
* @param FormError[]|self[] $errors An array of form errors and instances
|
||||
* of FormErrorIterator
|
||||
*
|
||||
|
@ -22,8 +22,7 @@ class FormEvent extends Event
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* @param FormInterface $form The associated form
|
||||
* @param mixed $data The data
|
||||
* @param mixed $data The data
|
||||
*/
|
||||
public function __construct(FormInterface $form, $data)
|
||||
{
|
||||
|
@ -23,9 +23,8 @@ interface FormFactoryInterface
|
||||
*
|
||||
* @see createBuilder()
|
||||
*
|
||||
* @param string $type The type of the form
|
||||
* @param mixed $data The initial data
|
||||
* @param array $options The options
|
||||
* @param string $type The type of the form
|
||||
* @param mixed $data The initial data
|
||||
*
|
||||
* @return FormInterface The form named after the type
|
||||
*
|
||||
@ -56,7 +55,6 @@ interface FormFactoryInterface
|
||||
* @param string $class The fully qualified class name
|
||||
* @param string $property The name of the property to guess for
|
||||
* @param mixed $data The initial data
|
||||
* @param array $options The options for the builder
|
||||
*
|
||||
* @return FormInterface The form named after the property
|
||||
*
|
||||
@ -67,9 +65,8 @@ interface FormFactoryInterface
|
||||
/**
|
||||
* Returns a form builder.
|
||||
*
|
||||
* @param string $type The type of the form
|
||||
* @param mixed $data The initial data
|
||||
* @param array $options The options
|
||||
* @param string $type The type of the form
|
||||
* @param mixed $data The initial data
|
||||
*
|
||||
* @return FormBuilderInterface The form builder
|
||||
*
|
||||
@ -99,7 +96,6 @@ interface FormFactoryInterface
|
||||
* @param string $class The fully qualified class name
|
||||
* @param string $property The name of the property to guess for
|
||||
* @param mixed $data The initial data
|
||||
* @param array $options The options for the builder
|
||||
*
|
||||
* @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.
|
||||
*
|
||||
* @param FormError $error
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function addError(FormError $error);
|
||||
|
@ -48,8 +48,7 @@ class FormRegistry implements FormRegistryInterface
|
||||
private $checkedTypes = [];
|
||||
|
||||
/**
|
||||
* @param FormExtensionInterface[] $extensions An array of FormExtensionInterface
|
||||
* @param ResolvedFormTypeFactoryInterface $resolvedTypeFactory The factory for resolved form types
|
||||
* @param FormExtensionInterface[] $extensions An array of 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);
|
||||
|
||||
/**
|
||||
* Configures the options for this type.
|
||||
*
|
||||
* @param OptionsResolver $resolver The resolver for the options
|
||||
*/
|
||||
public function configureOptions(OptionsResolver $resolver);
|
||||
|
||||
/**
|
||||
|
@ -25,9 +25,6 @@ interface FormTypeInterface
|
||||
* top most type. Type extensions can further modify the form.
|
||||
*
|
||||
* @see FormTypeExtensionInterface::buildForm()
|
||||
*
|
||||
* @param FormBuilderInterface $builder The form builder
|
||||
* @param array $options The options
|
||||
*/
|
||||
public function buildForm(FormBuilderInterface $builder, array $options);
|
||||
|
||||
@ -42,10 +39,6 @@ interface FormTypeInterface
|
||||
* to do so, move your logic to {@link finishView()} instead.
|
||||
*
|
||||
* @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);
|
||||
|
||||
@ -61,17 +54,11 @@ interface FormTypeInterface
|
||||
* else you are recommended to implement {@link buildView()} instead.
|
||||
*
|
||||
* @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);
|
||||
|
||||
/**
|
||||
* Configures the options for this type.
|
||||
*
|
||||
* @param OptionsResolver $resolver The resolver for the options
|
||||
*/
|
||||
public function configureOptions(OptionsResolver $resolver);
|
||||
|
||||
|
@ -29,7 +29,6 @@ class PreloadedExtension implements FormExtensionInterface
|
||||
*
|
||||
* @param FormTypeInterface[] $types The types 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)
|
||||
{
|
||||
|
@ -21,8 +21,7 @@ interface RequestHandlerInterface
|
||||
/**
|
||||
* 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);
|
||||
|
||||
|
@ -118,9 +118,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
@ -139,10 +136,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
||||
* Configures a form view for the type hierarchy.
|
||||
*
|
||||
* 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)
|
||||
{
|
||||
@ -161,10 +154,6 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
||||
* Finishes a form view for the type hierarchy.
|
||||
*
|
||||
* 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)
|
||||
{
|
||||
@ -209,10 +198,8 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
||||
*
|
||||
* Override this method if you want to customize the builder class.
|
||||
*
|
||||
* @param string $name The name of the builder
|
||||
* @param string|null $dataClass The data class
|
||||
* @param FormFactoryInterface $factory The current form factory
|
||||
* @param array $options The builder options
|
||||
* @param string $name The name of the builder
|
||||
* @param string|null $dataClass The data class
|
||||
*
|
||||
* @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.
|
||||
*
|
||||
* @param FormView|null $parent The parent view, if available
|
||||
*
|
||||
* @return FormView A new view instance
|
||||
*/
|
||||
protected function newView(FormView $parent = null)
|
||||
|
@ -25,9 +25,7 @@ interface ResolvedFormTypeFactoryInterface
|
||||
/**
|
||||
* Resolves a form type.
|
||||
*
|
||||
* @param FormTypeInterface $type
|
||||
* @param FormTypeExtensionInterface[] $typeExtensions
|
||||
* @param ResolvedFormTypeInterface|null $parent
|
||||
* @param FormTypeExtensionInterface[] $typeExtensions
|
||||
*
|
||||
* @return ResolvedFormTypeInterface
|
||||
*
|
||||
|
@ -51,9 +51,7 @@ interface ResolvedFormTypeInterface
|
||||
/**
|
||||
* Creates a new form builder for this type.
|
||||
*
|
||||
* @param FormFactoryInterface $factory The form factory
|
||||
* @param string $name The name for the builder
|
||||
* @param array $options The builder options
|
||||
* @param string $name The name for the builder
|
||||
*
|
||||
* @return FormBuilderInterface The created form builder
|
||||
*/
|
||||
@ -62,18 +60,12 @@ interface ResolvedFormTypeInterface
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function createView(FormInterface $form, FormView $parent = null);
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
||||
@ -81,10 +73,6 @@ interface ResolvedFormTypeInterface
|
||||
* Configures a form view for the type hierarchy.
|
||||
*
|
||||
* 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);
|
||||
|
||||
@ -92,10 +80,6 @@ interface ResolvedFormTypeInterface
|
||||
* Finishes a form view for the type hierarchy.
|
||||
*
|
||||
* 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);
|
||||
|
||||
|
@ -54,10 +54,9 @@ abstract class AbstractFormTest extends TestCase
|
||||
abstract protected function createForm();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param EventDispatcherInterface $dispatcher
|
||||
* @param string|null $dataClass
|
||||
* @param array $options
|
||||
* @param string $name
|
||||
* @param string|null $dataClass
|
||||
* @param array $options
|
||||
*
|
||||
* @return FormBuilder
|
||||
*/
|
||||
|
@ -745,11 +745,6 @@ class Request
|
||||
return null !== $this->session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Session.
|
||||
*
|
||||
* @param SessionInterface $session The Session
|
||||
*/
|
||||
public function setSession(SessionInterface $session)
|
||||
{
|
||||
$this->session = $session;
|
||||
|
@ -27,9 +27,8 @@ class MockFileSessionStorage extends MockArraySessionStorage
|
||||
private $savePath;
|
||||
|
||||
/**
|
||||
* @param string $savePath Path of directory to save session files
|
||||
* @param string $name Session name
|
||||
* @param MetadataBag $metaBag MetadataBag instance
|
||||
* @param string $savePath Path of directory to save session files
|
||||
* @param string $name Session name
|
||||
*/
|
||||
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 \SessionHandlerInterface|null $handler
|
||||
* @param MetadataBag $metaBag MetadataBag
|
||||
*/
|
||||
public function __construct(array $options = [], $handler = null, MetadataBag $metaBag = null)
|
||||
{
|
||||
|
@ -20,7 +20,6 @@ class PhpBridgeSessionStorage extends NativeSessionStorage
|
||||
{
|
||||
/**
|
||||
* @param \SessionHandlerInterface|null $handler
|
||||
* @param MetadataBag $metaBag MetadataBag
|
||||
*/
|
||||
public function __construct($handler = null, MetadataBag $metaBag = null)
|
||||
{
|
||||
|
@ -34,10 +34,7 @@ class Client extends AbstractBrowser
|
||||
private $catchExceptions = true;
|
||||
|
||||
/**
|
||||
* @param HttpKernelInterface $kernel An HttpKernel instance
|
||||
* @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
|
||||
* @param array $server The server parameters (equivalent of $_SERVER)
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param callable $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.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param ArgumentMetadata $argument
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function supports(Request $request, ArgumentMetadata $argument);
|
||||
@ -34,9 +31,6 @@ interface ArgumentValueResolverInterface
|
||||
/**
|
||||
* Returns the possible value(s).
|
||||
*
|
||||
* @param Request $request
|
||||
* @param ArgumentMetadata $argument
|
||||
*
|
||||
* @return iterable
|
||||
*/
|
||||
public function resolve(Request $request, ArgumentMetadata $argument);
|
||||
|
@ -27,10 +27,8 @@ class KernelEvent extends Event
|
||||
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
|
||||
* HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST
|
||||
* @param int $requestType The request type the kernel is currently processing; one of
|
||||
* HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST
|
||||
*/
|
||||
public function __construct(HttpKernelInterface $kernel, Request $request, ?int $requestType)
|
||||
{
|
||||
|
@ -51,7 +51,6 @@ class DebugHandlersListener implements EventSubscriberInterface
|
||||
|
||||
/**
|
||||
* @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 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
|
||||
|
@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventName
|
||||
* @param EventDispatcherInterface $eventDispatcher
|
||||
*/
|
||||
public function onKernelException(GetResponseForExceptionEvent $event)
|
||||
{
|
||||
if (null === $this->controller) {
|
||||
@ -123,9 +119,6 @@ class ExceptionListener implements EventSubscriberInterface
|
||||
/**
|
||||
* Clones the request for the exception.
|
||||
*
|
||||
* @param \Exception $exception The thrown exception
|
||||
* @param Request $request The original request
|
||||
*
|
||||
* @return Request The cloned 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 RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
|
||||
* @param LoggerInterface|null $logger The logger
|
||||
* @param string $projectDir
|
||||
* @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
|
||||
* operates on the correct context again.
|
||||
*
|
||||
* @param FinishRequestEvent $event
|
||||
*/
|
||||
public function onKernelFinishRequest(FinishRequestEvent $event)
|
||||
{
|
||||
|
@ -33,7 +33,6 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere
|
||||
* instance of InlineFragmentRenderer.
|
||||
*
|
||||
* @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)
|
||||
{
|
||||
|
@ -33,9 +33,8 @@ class FragmentHandler
|
||||
private $requestStack;
|
||||
|
||||
/**
|
||||
* @param RequestStack $requestStack The Request stack that controls the lifecycle of requests
|
||||
* @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances
|
||||
* @param bool $debug Whether the debug mode is enabled or not
|
||||
* @param FragmentRendererInterface[] $renderers An array of FragmentRendererInterface instances
|
||||
* @param bool $debug Whether the debug mode is enabled or not
|
||||
*/
|
||||
public function __construct(RequestStack $requestStack, array $renderers = [], bool $debug = false)
|
||||
{
|
||||
|
@ -34,9 +34,7 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer
|
||||
|
||||
/**
|
||||
* @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 $charset
|
||||
*/
|
||||
public function __construct($templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
|
||||
{
|
||||
|
@ -716,10 +716,8 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
||||
/**
|
||||
* 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 $baseClass The name of the container's base class
|
||||
* @param string $class The name of the class to generate
|
||||
* @param string $baseClass The name of the container's base class
|
||||
*/
|
||||
protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass)
|
||||
{
|
||||
|
@ -26,8 +26,7 @@ class BufferedBundleReader implements BundleReaderInterface
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
|
@ -91,8 +91,7 @@ abstract class AbstractDataGenerator
|
||||
}
|
||||
|
||||
/**
|
||||
* @param LocaleScanner $scanner
|
||||
* @param string $sourceDir
|
||||
* @param string $sourceDir
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
|
@ -39,8 +39,7 @@ class GeneratorConfig
|
||||
/**
|
||||
* Adds a writer to be used during the data conversion.
|
||||
*
|
||||
* @param string $targetDir The output directory
|
||||
* @param BundleWriterInterface $writer The writer instance
|
||||
* @param string $targetDir The output directory
|
||||
*/
|
||||
public function addBundleWriter($targetDir, BundleWriterInterface $writer)
|
||||
{
|
||||
|
@ -35,8 +35,7 @@ class CurrencyDataProvider
|
||||
* Creates a data provider that reads currency-related data from a
|
||||
* resource bundle.
|
||||
*
|
||||
* @param string $path The path to the resource bundle
|
||||
* @param BundleEntryReaderInterface $reader The reader for reading the resource bundle
|
||||
* @param string $path The path to the resource bundle
|
||||
*/
|
||||
public function __construct(string $path, BundleEntryReaderInterface $reader)
|
||||
{
|
||||
|
@ -28,8 +28,7 @@ class LanguageDataProvider
|
||||
/**
|
||||
* 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 BundleEntryReaderInterface $reader The reader for reading the .res files
|
||||
* @param string $path The path to the directory containing the .res files
|
||||
*/
|
||||
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