removed unneeded phpdocs

This commit is contained in:
Fabien Potencier 2019-08-06 07:23:17 +02:00 committed by Nicolas Grekas
parent c04fc48429
commit 7a44ed6544
43 changed files with 77 additions and 171 deletions

View File

@ -35,8 +35,7 @@ abstract class AbstractDoctrineExtension extends Extension
protected $drivers = []; protected $drivers = [];
/** /**
* @param array $objectManager A configured object manager * @param array $objectManager A configured object manager
* @param ContainerBuilder $container A ContainerBuilder instance
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */

View File

@ -29,8 +29,7 @@ class HttpCache extends BaseHttpCache
protected $kernel; protected $kernel;
/** /**
* @param KernelInterface $kernel A KernelInterface instance * @param string $cacheDir The cache directory (default used if null)
* @param string $cacheDir The cache directory (default used if null)
*/ */
public function __construct(KernelInterface $kernel, string $cacheDir = null) public function __construct(KernelInterface $kernel, string $cacheDir = null)
{ {
@ -43,9 +42,8 @@ class HttpCache extends BaseHttpCache
/** /**
* Forwards the Request to the backend and returns the Response. * Forwards the Request to the backend and returns the Response.
* *
* @param Request $request A Request instance * @param bool $raw Whether to catch exceptions or not
* @param bool $raw Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise)
* @param Response $entry A Response instance (the stale entry if present, null otherwise)
* *
* @return Response A Response instance * @return Response A Response instance
*/ */

View File

@ -36,12 +36,8 @@ class Router extends BaseRouter implements WarmableInterface, ServiceSubscriberI
private $paramFetcher; private $paramFetcher;
/** /**
* @param ContainerInterface $container A ContainerInterface instance * @param mixed $resource The main resource to load
* @param mixed $resource The main resource to load * @param array $options An array of options
* @param array $options An array of options
* @param RequestContext $context The context
* @param ContainerInterface|null $parameters A ContainerInterface instance allowing to fetch parameters
* @param LoggerInterface|null $logger
*/ */
public function __construct(ContainerInterface $container, $resource, array $options = [], RequestContext $context = null, ContainerInterface $parameters = null, LoggerInterface $logger = null, string $defaultLocale = null) public function __construct(ContainerInterface $container, $resource, array $options = [], RequestContext $context = null, ContainerInterface $parameters = null, LoggerInterface $logger = null, string $defaultLocale = null)
{ {

View File

@ -65,11 +65,9 @@ class Translator extends BaseTranslator implements WarmableInterface
* * debug: Whether to enable debugging or not (false by default) * * debug: Whether to enable debugging or not (false by default)
* * resource_files: List of translation resources available grouped by locale. * * resource_files: List of translation resources available grouped by locale.
* *
* @param ContainerInterface $container A ContainerInterface instance * @param string $defaultLocale
* @param MessageFormatterInterface $formatter The message formatter * @param array $loaderIds An array of loader Ids
* @param string $defaultLocale * @param array $options An array of options
* @param array $loaderIds An array of loader Ids
* @param array $options An array of options
* *
* @throws InvalidArgumentException * @throws InvalidArgumentException
*/ */

View File

@ -30,10 +30,9 @@ class TemplateIterator implements \IteratorAggregate
private $defaultPath; private $defaultPath;
/** /**
* @param KernelInterface $kernel A KernelInterface instance * @param string $rootDir The directory where global templates can be stored
* @param string $rootDir The directory where global templates can be stored * @param array $paths Additional Twig paths to warm
* @param array $paths Additional Twig paths to warm * @param string|null $defaultPath The directory where global templates can be stored
* @param string|null $defaultPath The directory where global templates can be stored
*/ */
public function __construct(KernelInterface $kernel, string $rootDir, array $paths = [], string $defaultPath = null) public function __construct(KernelInterface $kernel, string $rootDir, array $paths = [], string $defaultPath = null)
{ {

View File

@ -37,8 +37,7 @@ class WebProfilerExtension extends Extension
/** /**
* Loads the web profiler configuration. * Loads the web profiler configuration.
* *
* @param array $configs An array of configuration settings * @param array $configs An array of configuration settings
* @param ContainerBuilder $container A ContainerBuilder instance
*/ */
public function load(array $configs, ContainerBuilder $container) public function load(array $configs, ContainerBuilder $container)
{ {

View File

@ -140,8 +140,7 @@ class CookieJar
/** /**
* Updates the cookie jar from a Response object. * Updates the cookie jar from a Response object.
* *
* @param Response $response A Response object * @param string $uri The base URL
* @param string $uri The base URL
*/ */
public function updateFromResponse(Response $response, $uri = null) public function updateFromResponse(Response $response, $uri = null)
{ {

View File

@ -52,8 +52,7 @@ final class ProgressBar
private static $formats; private static $formats;
/** /**
* @param OutputInterface $output An OutputInterface instance * @param int $max Maximum steps (0 if unknown)
* @param int $max Maximum steps (0 if unknown)
*/ */
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0.1) public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0.1)
{ {

View File

@ -353,9 +353,8 @@ class QuestionHelper extends Helper
/** /**
* Gets a hidden response from user. * Gets a hidden response from user.
* *
* @param OutputInterface $output An Output instance * @param resource $inputStream The handler resource
* @param resource $inputStream The handler resource * @param bool $trimmable Is the answer trimmable
* @param bool $trimmable Is the answer trimmable
* *
* @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
*/ */
@ -416,9 +415,7 @@ class QuestionHelper extends Helper
/** /**
* Validates an attempt. * Validates an attempt.
* *
* @param callable $interviewer A callable that will ask for a question and return the result * @param callable $interviewer A callable that will ask for a question and return the result
* @param OutputInterface $output An Output instance
* @param Question $question A Question instance
* *
* @return mixed The validated response * @return mixed The validated response
* *

View File

@ -23,8 +23,7 @@ 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
*/ */

View File

@ -22,10 +22,6 @@ class ParsedExpression extends Expression
{ {
private $nodes; private $nodes;
/**
* @param string $expression An expression
* @param Node $nodes A Node representing the expression
*/
public function __construct(string $expression, Node $nodes) public function __construct(string $expression, Node $nodes)
{ {
parent::__construct($expression); parent::__construct($expression);

View File

@ -31,11 +31,6 @@ class Session implements SessionInterface, \IteratorAggregate, \Countable
private $data = []; private $data = [];
private $usageIndex = 0; private $usageIndex = 0;
/**
* @param SessionStorageInterface $storage A SessionStorageInterface instance
* @param AttributeBagInterface $attributes An AttributeBagInterface instance, (defaults null for default AttributeBag)
* @param FlashBagInterface $flashes A FlashBagInterface instance (defaults null for default FlashBag)
*/
public function __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null) public function __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null)
{ {
$this->storage = $storage ?: new NativeSessionStorage(); $this->storage = $storage ?: new NativeSessionStorage();

View File

@ -25,9 +25,8 @@ class FileLocator extends BaseFileLocator
private $path; private $path;
/** /**
* @param KernelInterface $kernel A KernelInterface instance * @param string|null $path The path the global resource directory
* @param string|null $path The path the global resource directory * @param array $paths An array of paths where to look for resources
* @param array $paths An array of paths where to look for resources
*/ */
public function __construct(KernelInterface $kernel, string $path = null, array $paths = []) public function __construct(KernelInterface $kernel, string $path = null, array $paths = [])
{ {

View File

@ -37,8 +37,7 @@ class FragmentListener implements EventSubscriberInterface
private $fragmentPath; private $fragmentPath;
/** /**
* @param UriSigner $signer A UriSigner instance * @param string $fragmentPath The path that triggers this listener
* @param string $fragmentPath The path that triggers this listener
*/ */
public function __construct(UriSigner $signer, string $fragmentPath = '/_fragment') public function __construct(UriSigner $signer, string $fragmentPath = '/_fragment')
{ {

View File

@ -34,7 +34,6 @@ class LocaleListener implements EventSubscriberInterface
private $requestStack; private $requestStack;
/** /**
* @param RequestStack $requestStack A RequestStack instance
* @param string $defaultLocale The default locale * @param string $defaultLocale The default locale
* @param RequestContextAwareInterface|null $router The router * @param RequestContextAwareInterface|null $router The router
*/ */

View File

@ -39,11 +39,8 @@ class ProfilerListener implements EventSubscriberInterface
protected $parents; protected $parents;
/** /**
* @param Profiler $profiler A Profiler instance * @param bool $onlyException True if the profiler only collects data when an exception occurs, false otherwise
* @param RequestStack $requestStack A RequestStack instance * @param bool $onlyMasterRequests True if the profiler only collects data when the request is a master request, false otherwise
* @param RequestMatcherInterface|null $matcher A RequestMatcher instance
* @param bool $onlyException True if the profiler only collects data when an exception occurs, false otherwise
* @param bool $onlyMasterRequests True if the profiler only collects data when the request is a master request, false otherwise
*/ */
public function __construct(Profiler $profiler, RequestStack $requestStack, RequestMatcherInterface $matcher = null, bool $onlyException = false, bool $onlyMasterRequests = false) public function __construct(Profiler $profiler, RequestStack $requestStack, RequestMatcherInterface $matcher = null, bool $onlyException = false, bool $onlyMasterRequests = false)
{ {

View File

@ -50,10 +50,9 @@ class RouterListener implements EventSubscriberInterface
private $debug; private $debug;
/** /**
* @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher * @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher
* @param RequestStack $requestStack A RequestStack instance * @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 LoggerInterface|null $logger The logger
* @param string $projectDir * @param string $projectDir
* @param bool $debug * @param bool $debug
* *

View File

@ -32,7 +32,6 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere
* The "fallback" strategy when surrogate is not available should always be an * The "fallback" strategy when surrogate is not available should always be an
* instance of InlineFragmentRenderer. * instance of InlineFragmentRenderer.
* *
* @param SurrogateInterface $surrogate An Surrogate instance
* @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 * @param UriSigner $signer
*/ */

View File

@ -26,7 +26,6 @@ interface FragmentRendererInterface
* Renders a URI and returns the Response content. * Renders a URI and returns the Response content.
* *
* @param string|ControllerReference $uri A URI as a string or a ControllerReference instance * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
* @param Request $request A Request instance
* @param array $options An array of options * @param array $options An array of options
* *
* @return Response A Response instance * @return Response A Response instance

View File

@ -39,10 +39,8 @@ abstract class RoutableFragmentRenderer implements FragmentRendererInterface
/** /**
* Generates a fragment URI for a given controller. * Generates a fragment URI for a given controller.
* *
* @param ControllerReference $reference A ControllerReference instance * @param bool $absolute Whether to generate an absolute URL or not
* @param Request $request A Request instance * @param bool $strict Whether to allow non-scalar attributes or not
* @param bool $absolute Whether to generate an absolute URL or not
* @param bool $strict Whether to allow non-scalar attributes or not
* *
* @return string A fragment URI * @return string A fragment URI
*/ */

View File

@ -256,8 +256,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
/** /**
* Forwards the Request to the backend without storing the Response in the cache. * Forwards the Request to the backend without storing the Response in the cache.
* *
* @param Request $request A Request instance * @param bool $catch Whether to process exceptions
* @param bool $catch Whether to process exceptions
* *
* @return Response A Response instance * @return Response A Response instance
*/ */
@ -271,8 +270,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
/** /**
* Invalidates non-safe methods (like POST, PUT, and DELETE). * Invalidates non-safe methods (like POST, PUT, and DELETE).
* *
* @param Request $request A Request instance * @param bool $catch Whether to process exceptions
* @param bool $catch Whether to process exceptions
* *
* @return Response A Response instance * @return Response A Response instance
* *
@ -320,8 +318,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
* the backend using conditional GET. When no matching cache entry is found, * the backend using conditional GET. When no matching cache entry is found,
* it triggers "miss" processing. * it triggers "miss" processing.
* *
* @param Request $request A Request instance * @param bool $catch Whether to process exceptions
* @param bool $catch Whether to process exceptions
* *
* @return Response A Response instance * @return Response A Response instance
* *
@ -366,9 +363,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
* The original request is used as a template for a conditional * The original request is used as a template for a conditional
* GET request with the backend. * GET request with the backend.
* *
* @param Request $request A Request instance * @param bool $catch Whether to process exceptions
* @param Response $entry A Response instance to validate
* @param bool $catch Whether to process exceptions
* *
* @return Response A Response instance * @return Response A Response instance
*/ */
@ -429,8 +424,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
* Unconditionally fetches a fresh response from the backend and * Unconditionally fetches a fresh response from the backend and
* stores it in the cache if is cacheable. * stores it in the cache if is cacheable.
* *
* @param Request $request A Request instance * @param bool $catch Whether to process exceptions
* @param bool $catch Whether to process exceptions
* *
* @return Response A Response instance * @return Response A Response instance
*/ */
@ -462,9 +456,8 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
* All backend requests (cache passes, fetches, cache validations) * All backend requests (cache passes, fetches, cache validations)
* run through this method. * run through this method.
* *
* @param Request $request A Request instance * @param bool $catch Whether to catch exceptions or not
* @param bool $catch Whether to catch exceptions or not * @param Response $entry A Response instance (the stale entry if present, null otherwise)
* @param Response $entry A Response instance (the stale entry if present, null otherwise)
* *
* @return Response A Response instance * @return Response A Response instance
*/ */

View File

@ -78,10 +78,9 @@ interface SurrogateInterface
/** /**
* Handles a Surrogate from the cache. * Handles a Surrogate from the cache.
* *
* @param HttpCache $cache An HttpCache instance * @param string $uri The main URI
* @param string $uri The main URI * @param string $alt An alternative URI
* @param string $alt An alternative URI * @param bool $ignoreErrors Whether to ignore errors or not
* @param bool $ignoreErrors Whether to ignore errors or not
* *
* @return string * @return string
* *

View File

@ -110,8 +110,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
* *
* Exceptions are not caught. * Exceptions are not caught.
* *
* @param Request $request A Request instance * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* *
* @return Response A Response instance * @return Response A Response instance
* *
@ -175,9 +174,8 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
/** /**
* Filters a response object. * Filters a response object.
* *
* @param Response $response A Response instance * @param Request $request An error message in case the response is not a Response object
* @param Request $request An error message in case the response is not a Response object * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* *
* @return Response The filtered Response instance * @return Response The filtered Response instance
* *
@ -210,9 +208,8 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
/** /**
* Handles an exception by trying to convert it to a Response. * Handles an exception by trying to convert it to a Response.
* *
* @param \Exception $e An \Exception instance * @param \Exception $e An \Exception instance
* @param Request $request A Request instance * @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* *
* @throws \Exception * @throws \Exception
*/ */

View File

@ -30,10 +30,9 @@ interface HttpKernelInterface
* When $catch is true, the implementation must catch all exceptions * When $catch is true, the implementation must catch all exceptions
* and do its best to convert them to a Response instance. * and do its best to convert them to a Response instance.
* *
* @param Request $request A Request instance * @param int $type The type of the request
* @param int $type The type of the request * (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
* (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) * @param bool $catch Whether to catch exceptions or not
* @param bool $catch Whether to catch exceptions or not
* *
* @return Response A Response instance * @return Response A Response instance
* *

View File

@ -30,11 +30,6 @@ abstract class AbstractConnection implements ConnectionInterface
$this->config = $resolver->resolve($config); $this->config = $resolver->resolve($config);
} }
/**
* Configures the adapter's options.
*
* @param OptionsResolver $resolver An OptionsResolver instance
*/
protected function configureOptions(OptionsResolver $resolver) protected function configureOptions(OptionsResolver $resolver)
{ {
$resolver->setDefaults([ $resolver->setDefaults([

View File

@ -101,10 +101,9 @@ class YamlFileLoader extends FileLoader
/** /**
* Parses a route and adds it to the RouteCollection. * Parses a route and adds it to the RouteCollection.
* *
* @param RouteCollection $collection A RouteCollection instance * @param string $name Route name
* @param string $name Route name * @param array $config Route definition
* @param array $config Route definition * @param string $path Full path of the YAML file being processed
* @param string $path Full path of the YAML file being processed
*/ */
protected function parseRoute(RouteCollection $collection, $name, array $config, $path) protected function parseRoute(RouteCollection $collection, $name, array $config, $path)
{ {
@ -154,10 +153,9 @@ class YamlFileLoader extends FileLoader
/** /**
* Parses an import and adds the routes in the resource to the RouteCollection. * Parses an import and adds the routes in the resource to the RouteCollection.
* *
* @param RouteCollection $collection A RouteCollection instance * @param array $config Route definition
* @param array $config Route definition * @param string $path Full path of the YAML file being processed
* @param string $path Full path of the YAML file being processed * @param string $file Loaded file name
* @param string $file Loaded file name
*/ */
protected function parseImport(RouteCollection $collection, array $config, $path, $file) protected function parseImport(RouteCollection $collection, array $config, $path, $file)
{ {

View File

@ -96,11 +96,8 @@ class Router implements RouterInterface, RequestMatcherInterface
private $expressionLanguageProviders = []; private $expressionLanguageProviders = [];
/** /**
* @param LoaderInterface $loader A LoaderInterface instance * @param mixed $resource The main resource to load
* @param mixed $resource The main resource to load * @param array $options An array of options
* @param array $options An array of options
* @param RequestContext $context The context
* @param LoggerInterface $logger A logger instance
*/ */
public function __construct(LoaderInterface $loader, $resource, array $options = [], RequestContext $context = null, LoggerInterface $logger = null, string $defaultLocale = null) public function __construct(LoaderInterface $loader, $resource, array $options = [], RequestContext $context = null, LoggerInterface $logger = null, string $defaultLocale = null)
{ {

View File

@ -24,9 +24,8 @@ class RememberMeAuthenticationProvider implements AuthenticationProviderInterfac
private $providerKey; private $providerKey;
/** /**
* @param UserCheckerInterface $userChecker An UserCheckerInterface interface * @param string $secret A secret
* @param string $secret A secret * @param string $providerKey A provider secret
* @param string $providerKey A provider secret
*/ */
public function __construct(UserCheckerInterface $userChecker, string $secret, string $providerKey) public function __construct(UserCheckerInterface $userChecker, string $secret, string $providerKey)
{ {

View File

@ -23,9 +23,8 @@ interface AccessDecisionManagerInterface
/** /**
* Decides whether the access is possible or not. * Decides whether the access is possible or not.
* *
* @param TokenInterface $token A TokenInterface instance * @param array $attributes An array of attributes associated with the method being invoked
* @param array $attributes An array of attributes associated with the method being invoked * @param object $object The object to secure
* @param object $object The object to secure
* *
* @return bool true if the access is granted, false otherwise * @return bool true if the access is granted, false otherwise
*/ */

View File

@ -30,9 +30,8 @@ interface VoterInterface
* This method must return one of the following constants: * This method must return one of the following constants:
* ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN. * ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
* *
* @param TokenInterface $token A TokenInterface instance * @param mixed $subject The subject to secure
* @param mixed $subject The subject to secure * @param array $attributes An array of attributes associated with the method being invoked
* @param array $attributes An array of attributes associated with the method being invoked
* *
* @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
*/ */

View File

@ -45,11 +45,8 @@ class GuardAuthenticationListener implements ListenerInterface
private $rememberMeServices; private $rememberMeServices;
/** /**
* @param GuardAuthenticatorHandler $guardHandler The Guard handler * @param string $providerKey The provider (i.e. firewall) key
* @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance * @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
* @param string $providerKey The provider (i.e. firewall) key
* @param iterable|AuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
* @param LoggerInterface $logger A LoggerInterface instance
*/ */
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, $guardAuthenticators, LoggerInterface $logger = null) public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, string $providerKey, $guardAuthenticators, LoggerInterface $logger = null)
{ {

View File

@ -25,9 +25,8 @@ class AccessMap implements AccessMapInterface
private $map = []; private $map = [];
/** /**
* @param RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance * @param array $attributes An array of attributes to pass to the access decision manager (like roles)
* @param array $attributes An array of attributes to pass to the access decision manager (like roles) * @param string|null $channel The channel to enforce (http, https, or null)
* @param string|null $channel The channel to enforce (http, https, or null)
*/ */
public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], $channel = null) public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], $channel = null)
{ {

View File

@ -22,8 +22,7 @@ class CustomAuthenticationFailureHandler implements AuthenticationFailureHandler
private $handler; private $handler;
/** /**
* @param AuthenticationFailureHandlerInterface $handler An AuthenticationFailureHandlerInterface instance * @param array $options Options for processing a successful authentication attempt
* @param array $options Options for processing a successful authentication attempt
*/ */
public function __construct(AuthenticationFailureHandlerInterface $handler, array $options) public function __construct(AuthenticationFailureHandlerInterface $handler, array $options)
{ {

View File

@ -22,9 +22,8 @@ class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandler
private $handler; private $handler;
/** /**
* @param AuthenticationSuccessHandlerInterface $handler An AuthenticationSuccessHandlerInterface instance * @param array $options Options for processing a successful authentication attempt
* @param array $options Options for processing a successful authentication attempt * @param string $providerKey The provider key
* @param string $providerKey The provider key
*/ */
public function __construct(AuthenticationSuccessHandlerInterface $handler, array $options, string $providerKey) public function __construct(AuthenticationSuccessHandlerInterface $handler, array $options, string $providerKey)
{ {

View File

@ -29,10 +29,8 @@ class FormAuthenticationEntryPoint implements AuthenticationEntryPointInterface
private $httpUtils; private $httpUtils;
/** /**
* @param HttpKernelInterface $kernel * @param string $loginPath The path to the login form
* @param HttpUtils $httpUtils An HttpUtils instance * @param bool $useForward Whether to forward or redirect to the login form
* @param string $loginPath The path to the login form
* @param bool $useForward Whether to forward or redirect to the login form
*/ */
public function __construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false) public function __construct(HttpKernelInterface $kernel, HttpUtils $httpUtils, string $loginPath, bool $useForward = false)
{ {

View File

@ -42,11 +42,8 @@ class LogoutListener implements ListenerInterface
private $csrfTokenManager; private $csrfTokenManager;
/** /**
* @param TokenStorageInterface $tokenStorage * @param TokenStorageInterface $tokenStorage
* @param HttpUtils $httpUtils An HttpUtils instance * @param array $options An array of options to process a logout attempt
* @param LogoutSuccessHandlerInterface $successHandler A LogoutSuccessHandlerInterface instance
* @param array $options An array of options to process a logout attempt
* @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance
*/ */
public function __construct(TokenStorageInterface $tokenStorage, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = [], CsrfTokenManagerInterface $csrfTokenManager = null) public function __construct(TokenStorageInterface $tokenStorage, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = [], CsrfTokenManagerInterface $csrfTokenManager = null)
{ {

View File

@ -33,7 +33,6 @@ class HttpUtils
private $secureDomainRegexp; private $secureDomainRegexp;
/** /**
* @param UrlGeneratorInterface $urlGenerator A UrlGeneratorInterface instance
* @param UrlMatcherInterface|RequestMatcherInterface $urlMatcher The URL or Request matcher * @param UrlMatcherInterface|RequestMatcherInterface $urlMatcher The URL or Request matcher
* @param string|null $domainRegexp A regexp the target of HTTP redirections must match, scheme included * @param string|null $domainRegexp A regexp the target of HTTP redirections must match, scheme included
* @param string|null $secureDomainRegexp A regexp the target of HTTP redirections must match when the scheme is "https" * @param string|null $secureDomainRegexp A regexp the target of HTTP redirections must match when the scheme is "https"
@ -54,9 +53,8 @@ class HttpUtils
/** /**
* Creates a redirect Response. * Creates a redirect Response.
* *
* @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
* @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * @param int $status The status code
* @param int $status The status code
* *
* @return RedirectResponse A RedirectResponse instance * @return RedirectResponse A RedirectResponse instance
*/ */
@ -114,8 +112,7 @@ class HttpUtils
/** /**
* Checks that a given path matches the Request. * Checks that a given path matches the Request.
* *
* @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
* @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
* *
* @return bool true if the path is the same as the one from the Request, false otherwise * @return bool true if the path is the same as the one from the Request, false otherwise
*/ */

View File

@ -23,11 +23,6 @@ trait DenormalizerAwareTrait
*/ */
protected $denormalizer; protected $denormalizer;
/**
* Sets the Denormalizer.
*
* @param DenormalizerInterface $denormalizer A DenormalizerInterface instance
*/
public function setDenormalizer(DenormalizerInterface $denormalizer) public function setDenormalizer(DenormalizerInterface $denormalizer)
{ {
$this->denormalizer = $denormalizer; $this->denormalizer = $denormalizer;

View File

@ -23,11 +23,6 @@ trait NormalizerAwareTrait
*/ */
protected $normalizer; protected $normalizer;
/**
* Sets the normalizer.
*
* @param NormalizerInterface $normalizer A NormalizerInterface instance
*/
public function setNormalizer(NormalizerInterface $normalizer) public function setNormalizer(NormalizerInterface $normalizer)
{ {
$this->normalizer = $normalizer; $this->normalizer = $normalizer;

View File

@ -23,11 +23,6 @@ trait SerializerAwareTrait
*/ */
protected $serializer; protected $serializer;
/**
* Sets the serializer.
*
* @param SerializerInterface $serializer A SerializerInterface instance
*/
public function setSerializer(SerializerInterface $serializer) public function setSerializer(SerializerInterface $serializer)
{ {
$this->serializer = $serializer; $this->serializer = $serializer;

View File

@ -30,8 +30,7 @@ class CacheLoader extends Loader
protected $dir; protected $dir;
/** /**
* @param LoaderInterface $loader A Loader instance * @param string $dir The directory where to store the cache files
* @param string $dir The directory where to store the cache files
*/ */
public function __construct(LoaderInterface $loader, string $dir) public function __construct(LoaderInterface $loader, string $dir)
{ {

View File

@ -108,8 +108,7 @@ class Translator implements LegacyTranslatorInterface, TranslatorInterface, Tran
/** /**
* Adds a Loader. * Adds a Loader.
* *
* @param string $format The name of the loader (@see addResource()) * @param string $format The name of the loader (@see addResource())
* @param LoaderInterface $loader A LoaderInterface instance
*/ */
public function addLoader($format, LoaderInterface $loader) public function addLoader($format, LoaderInterface $loader)
{ {

View File

@ -116,7 +116,6 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface
/** /**
* Dumps a Data object. * Dumps a Data object.
* *
* @param Data $data A Data object
* @param callable|resource|string|true|null $output A line dumper callable, an opened stream, an output path or true to return the dump * @param callable|resource|string|true|null $output A line dumper callable, an opened stream, an output path or true to return the dump
* *
* @return string|null The dump as string when $output is true * @return string|null The dump as string when $output is true