diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index 06add6c34a..95b6419db2 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -25,8 +25,6 @@ use Symfony\Component\Process\PhpProcess; * you need to also implement the getScript() method. * * @author Fabien Potencier - * - * @api */ abstract class Client { @@ -52,8 +50,6 @@ abstract class Client * @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 - * - * @api */ public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null) { @@ -71,8 +67,6 @@ abstract class Client * Sets whether to automatically follow redirects or not. * * @param bool $followRedirect Whether to follow redirects - * - * @api */ public function followRedirects($followRedirect = true) { @@ -96,8 +90,6 @@ abstract class Client * @param bool $insulated Whether to insulate the requests or not * * @throws \RuntimeException When Symfony Process Component is not installed - * - * @api */ public function insulate($insulated = true) { @@ -114,8 +106,6 @@ abstract class Client * Sets server parameters. * * @param array $server An array of server parameters - * - * @api */ public function setServerParameters(array $server) { @@ -153,8 +143,6 @@ abstract class Client * Returns the History instance. * * @return History A History instance - * - * @api */ public function getHistory() { @@ -165,8 +153,6 @@ abstract class Client * Returns the CookieJar instance. * * @return CookieJar A CookieJar instance - * - * @api */ public function getCookieJar() { @@ -177,8 +163,6 @@ abstract class Client * Returns the current Crawler instance. * * @return Crawler|null A Crawler instance - * - * @api */ public function getCrawler() { @@ -189,8 +173,6 @@ abstract class Client * Returns the current BrowserKit Response instance. * * @return Response|null A BrowserKit Response instance - * - * @api */ public function getInternalResponse() { @@ -206,8 +188,6 @@ abstract class Client * @return object|null A response instance * * @see doRequest() - * - * @api */ public function getResponse() { @@ -218,8 +198,6 @@ abstract class Client * Returns the current BrowserKit Request instance. * * @return Request|null A BrowserKit Request instance - * - * @api */ public function getInternalRequest() { @@ -235,8 +213,6 @@ abstract class Client * @return object|null A Request instance * * @see doRequest() - * - * @api */ public function getRequest() { @@ -249,8 +225,6 @@ abstract class Client * @param Link $link A Link instance * * @return Crawler - * - * @api */ public function click(Link $link) { @@ -268,8 +242,6 @@ abstract class Client * @param array $values An array of form field values * * @return Crawler - * - * @api */ public function submit(Form $form, array $values = array()) { @@ -290,8 +262,6 @@ abstract class Client * @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload()) * * @return Crawler - * - * @api */ public function request($method, $uri, array $parameters = array(), array $files = array(), array $server = array(), $content = null, $changeHistory = true) { @@ -449,8 +419,6 @@ abstract class Client * Goes back in the browser history. * * @return Crawler - * - * @api */ public function back() { @@ -461,8 +429,6 @@ abstract class Client * Goes forward in the browser history. * * @return Crawler - * - * @api */ public function forward() { @@ -473,8 +439,6 @@ abstract class Client * Reloads the current browser. * * @return Crawler - * - * @api */ public function reload() { @@ -487,8 +451,6 @@ abstract class Client * @return Crawler * * @throws \LogicException If request was not a redirect - * - * @api */ public function followRedirect() { @@ -537,8 +499,6 @@ abstract class Client * Restarts the client. * * It flushes history and all cookies. - * - * @api */ public function restart() { diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index e690cdacd5..604d12d84d 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit; * Cookie represents an HTTP cookie. * * @author Fabien Potencier - * - * @api */ class Cookie { @@ -56,8 +54,6 @@ class Cookie * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client * @param bool $httponly The cookie httponly flag * @param bool $encodedValue Whether the value is encoded or not - * - * @api */ public function __construct($name, $value, $expires = null, $path = null, $domain = '', $secure = false, $httponly = true, $encodedValue = false) { @@ -90,8 +86,6 @@ class Cookie * @return string The HTTP representation of the Cookie * * @throws \UnexpectedValueException - * - * @api */ public function __toString() { @@ -130,8 +124,6 @@ class Cookie * @return Cookie A Cookie instance * * @throws \InvalidArgumentException - * - * @api */ public static function fromString($cookie, $url = null) { @@ -229,8 +221,6 @@ class Cookie * Gets the name of the cookie. * * @return string The cookie name - * - * @api */ public function getName() { @@ -241,8 +231,6 @@ class Cookie * Gets the value of the cookie. * * @return string The cookie value - * - * @api */ public function getValue() { @@ -253,8 +241,6 @@ class Cookie * Gets the raw value of the cookie. * * @return string The cookie value - * - * @api */ public function getRawValue() { @@ -265,8 +251,6 @@ class Cookie * Gets the expires time of the cookie. * * @return string The cookie expires time - * - * @api */ public function getExpiresTime() { @@ -277,8 +261,6 @@ class Cookie * Gets the path of the cookie. * * @return string The cookie path - * - * @api */ public function getPath() { @@ -289,8 +271,6 @@ class Cookie * Gets the domain of the cookie. * * @return string The cookie domain - * - * @api */ public function getDomain() { @@ -301,8 +281,6 @@ class Cookie * Returns the secure flag of the cookie. * * @return bool The cookie secure flag - * - * @api */ public function isSecure() { @@ -313,8 +291,6 @@ class Cookie * Returns the httponly flag of the cookie. * * @return bool The cookie httponly flag - * - * @api */ public function isHttpOnly() { @@ -325,8 +301,6 @@ class Cookie * Returns true if the cookie has expired. * * @return bool true if the cookie has expired, false otherwise - * - * @api */ public function isExpired() { diff --git a/src/Symfony/Component/BrowserKit/CookieJar.php b/src/Symfony/Component/BrowserKit/CookieJar.php index 1a36818d02..4b9661b63f 100644 --- a/src/Symfony/Component/BrowserKit/CookieJar.php +++ b/src/Symfony/Component/BrowserKit/CookieJar.php @@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit; * CookieJar. * * @author Fabien Potencier - * - * @api */ class CookieJar { @@ -26,8 +24,6 @@ class CookieJar * Sets a cookie. * * @param Cookie $cookie A Cookie instance - * - * @api */ public function set(Cookie $cookie) { @@ -47,8 +43,6 @@ class CookieJar * @param string $domain The cookie domain * * @return Cookie|null A Cookie instance or null if the cookie does not exist - * - * @api */ public function get($name, $path = '/', $domain = null) { @@ -94,8 +88,6 @@ class CookieJar * @param string $name The cookie name * @param string $path The cookie path * @param string $domain The cookie domain - * - * @api */ public function expire($name, $path = '/', $domain = null) { @@ -126,8 +118,6 @@ class CookieJar /** * Removes all the cookies from the jar. - * - * @api */ public function clear() { diff --git a/src/Symfony/Component/BrowserKit/Request.php b/src/Symfony/Component/BrowserKit/Request.php index 6d381d2cb3..c79b341bed 100644 --- a/src/Symfony/Component/BrowserKit/Request.php +++ b/src/Symfony/Component/BrowserKit/Request.php @@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit; * Request object. * * @author Fabien Potencier - * - * @api */ class Request { @@ -38,8 +36,6 @@ class Request * @param array $cookies An array of cookies * @param array $server An array of server parameters * @param string $content The raw body data - * - * @api */ public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null) { @@ -56,8 +52,6 @@ class Request * Gets the request URI. * * @return string The request URI - * - * @api */ public function getUri() { @@ -68,8 +62,6 @@ class Request * Gets the request HTTP method. * * @return string The request HTTP method - * - * @api */ public function getMethod() { @@ -80,8 +72,6 @@ class Request * Gets the request parameters. * * @return array The request parameters - * - * @api */ public function getParameters() { @@ -92,8 +82,6 @@ class Request * Gets the request server files. * * @return array The request files - * - * @api */ public function getFiles() { @@ -104,8 +92,6 @@ class Request * Gets the request cookies. * * @return array The request cookies - * - * @api */ public function getCookies() { @@ -116,8 +102,6 @@ class Request * Gets the request server parameters. * * @return array The request server parameters - * - * @api */ public function getServer() { @@ -128,8 +112,6 @@ class Request * Gets the request raw body data. * * @return string The request raw body data. - * - * @api */ public function getContent() { diff --git a/src/Symfony/Component/BrowserKit/Response.php b/src/Symfony/Component/BrowserKit/Response.php index 7a7130b95e..984442fbe3 100644 --- a/src/Symfony/Component/BrowserKit/Response.php +++ b/src/Symfony/Component/BrowserKit/Response.php @@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit; * Response object. * * @author Fabien Potencier - * - * @api */ class Response { @@ -33,8 +31,6 @@ class Response * @param string $content The content of the response * @param int $status The response status code * @param array $headers An array of headers - * - * @api */ public function __construct($content = '', $status = 200, array $headers = array()) { @@ -81,8 +77,6 @@ class Response * Gets the response content. * * @return string The response content - * - * @api */ public function getContent() { @@ -93,8 +87,6 @@ class Response * Gets the response status code. * * @return int The response status code - * - * @api */ public function getStatus() { @@ -105,8 +97,6 @@ class Response * Gets the response headers. * * @return array The response headers - * - * @api */ public function getHeaders() { diff --git a/src/Symfony/Component/ClassLoader/ApcClassLoader.php b/src/Symfony/Component/ClassLoader/ApcClassLoader.php index 48de72f1b1..9170929a10 100644 --- a/src/Symfony/Component/ClassLoader/ApcClassLoader.php +++ b/src/Symfony/Component/ClassLoader/ApcClassLoader.php @@ -44,8 +44,6 @@ namespace Symfony\Component\ClassLoader; * * @author Fabien Potencier * @author Kris Wallsmith - * - * @api */ class ApcClassLoader { @@ -66,8 +64,6 @@ class ApcClassLoader * * @throws \RuntimeException * @throws \InvalidArgumentException - * - * @api */ public function __construct($prefix, $decorated) { diff --git a/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php b/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php index 4fdf39b222..3a3a8a4a44 100644 --- a/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php +++ b/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php @@ -57,8 +57,6 @@ namespace Symfony\Component\ClassLoader; * * @author Fabien Potencier * @author Kris Wallsmith - * - * @api */ class ApcUniversalClassLoader extends UniversalClassLoader { @@ -70,8 +68,6 @@ class ApcUniversalClassLoader extends UniversalClassLoader * @param string $prefix A prefix to create a namespace in APC * * @throws \RuntimeException - * - * @api */ public function __construct($prefix) { diff --git a/src/Symfony/Component/ClassLoader/DebugClassLoader.php b/src/Symfony/Component/ClassLoader/DebugClassLoader.php index a16d8524ab..eec68b2c98 100644 --- a/src/Symfony/Component/ClassLoader/DebugClassLoader.php +++ b/src/Symfony/Component/ClassLoader/DebugClassLoader.php @@ -20,8 +20,6 @@ namespace Symfony\Component\ClassLoader; * * @author Fabien Potencier * @author Christophe Coevoet - * - * @api */ class DebugClassLoader { @@ -31,8 +29,6 @@ class DebugClassLoader * Constructor. * * @param object $classFinder - * - * @api */ public function __construct($classFinder) { diff --git a/src/Symfony/Component/ClassLoader/UniversalClassLoader.php b/src/Symfony/Component/ClassLoader/UniversalClassLoader.php index e5165dcf14..426b0713c8 100644 --- a/src/Symfony/Component/ClassLoader/UniversalClassLoader.php +++ b/src/Symfony/Component/ClassLoader/UniversalClassLoader.php @@ -55,8 +55,6 @@ namespace Symfony\Component\ClassLoader; * found before giving up. * * @author Fabien Potencier - * - * @api */ class UniversalClassLoader { @@ -132,8 +130,6 @@ class UniversalClassLoader * Registers the directory to use as a fallback for namespaces. * * @param array $dirs An array of directories - * - * @api */ public function registerNamespaceFallbacks(array $dirs) { @@ -154,8 +150,6 @@ class UniversalClassLoader * Registers directories to use as a fallback for class prefixes. * * @param array $dirs An array of directories - * - * @api */ public function registerPrefixFallbacks(array $dirs) { @@ -176,8 +170,6 @@ class UniversalClassLoader * Registers an array of namespaces. * * @param array $namespaces An array of namespaces (namespaces as keys and locations as values) - * - * @api */ public function registerNamespaces(array $namespaces) { @@ -191,8 +183,6 @@ class UniversalClassLoader * * @param string $namespace The namespace * @param array|string $paths The location(s) of the namespace - * - * @api */ public function registerNamespace($namespace, $paths) { @@ -203,8 +193,6 @@ class UniversalClassLoader * Registers an array of classes using the PEAR naming convention. * * @param array $classes An array of classes (prefixes as keys and locations as values) - * - * @api */ public function registerPrefixes(array $classes) { @@ -218,8 +206,6 @@ class UniversalClassLoader * * @param string $prefix The classes prefix * @param array|string $paths The location(s) of the classes - * - * @api */ public function registerPrefix($prefix, $paths) { @@ -230,8 +216,6 @@ class UniversalClassLoader * Registers this instance as an autoloader. * * @param bool $prepend Whether to prepend the autoloader or not - * - * @api */ public function register($prepend = false) { diff --git a/src/Symfony/Component/ClassLoader/XcacheClassLoader.php b/src/Symfony/Component/ClassLoader/XcacheClassLoader.php index 19c130349a..bf512273ef 100644 --- a/src/Symfony/Component/ClassLoader/XcacheClassLoader.php +++ b/src/Symfony/Component/ClassLoader/XcacheClassLoader.php @@ -45,8 +45,6 @@ namespace Symfony\Component\ClassLoader; * @author Fabien Potencier * @author Kris Wallsmith * @author Kim Hemsø Rasmussen - * - * @api */ class XcacheClassLoader { @@ -67,8 +65,6 @@ class XcacheClassLoader * * @throws \RuntimeException * @throws \InvalidArgumentException - * - * @api */ public function __construct($prefix, $decorated) { diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 3989b0ec83..f8bd1d0582 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -49,8 +49,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; * $app->run(); * * @author Fabien Potencier - * - * @api */ class Application { @@ -70,8 +68,6 @@ class Application * * @param string $name The name of the application * @param string $version The version of the application - * - * @api */ public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') { @@ -102,8 +98,6 @@ class Application * @return int 0 if everything went fine, or an error code * * @throws \Exception When doRun returns Exception - * - * @api */ public function run(InputInterface $input = null, OutputInterface $output = null) { @@ -198,8 +192,6 @@ class Application * Set a helper set to be used with the command. * * @param HelperSet $helperSet The helper set - * - * @api */ public function setHelperSet(HelperSet $helperSet) { @@ -210,8 +202,6 @@ class Application * Get the helper set associated with the command. * * @return HelperSet The HelperSet instance associated with this command - * - * @api */ public function getHelperSet() { @@ -222,8 +212,6 @@ class Application * Set an input definition set to be used with this application. * * @param InputDefinition $definition The input definition - * - * @api */ public function setDefinition(InputDefinition $definition) { @@ -271,8 +259,6 @@ class Application * Sets whether to catch exceptions or not during commands execution. * * @param bool $boolean Whether to catch exceptions or not during commands execution - * - * @api */ public function setCatchExceptions($boolean) { @@ -283,8 +269,6 @@ class Application * Sets whether to automatically exit after a command execution or not. * * @param bool $boolean Whether to automatically exit after a command execution or not - * - * @api */ public function setAutoExit($boolean) { @@ -295,8 +279,6 @@ class Application * Gets the name of the application. * * @return string The application name - * - * @api */ public function getName() { @@ -307,8 +289,6 @@ class Application * Sets the application name. * * @param string $name The application name - * - * @api */ public function setName($name) { @@ -319,8 +299,6 @@ class Application * Gets the application version. * * @return string The application version - * - * @api */ public function getVersion() { @@ -331,8 +309,6 @@ class Application * Sets the application version. * * @param string $version The application version - * - * @api */ public function setVersion($version) { @@ -343,8 +319,6 @@ class Application * Returns the long version of the application. * * @return string The long application version - * - * @api */ public function getLongVersion() { @@ -361,8 +335,6 @@ class Application * @param string $name The command name * * @return Command The newly created command - * - * @api */ public function register($name) { @@ -373,8 +345,6 @@ class Application * Adds an array of command objects. * * @param Command[] $commands An array of commands - * - * @api */ public function addCommands(array $commands) { @@ -391,8 +361,6 @@ class Application * @param Command $command A Command object * * @return Command The registered command - * - * @api */ public function add(Command $command) { @@ -421,8 +389,6 @@ class Application * @return Command A Command object * * @throws \InvalidArgumentException When command name given does not exist - * - * @api */ public function get($name) { @@ -450,8 +416,6 @@ class Application * @param string $name The command name or alias * * @return bool true if the command exists, false otherwise - * - * @api */ public function has($name) { @@ -549,8 +513,6 @@ class Application * @return Command A Command instance * * @throws \InvalidArgumentException When command name is incorrect or ambiguous - * - * @api */ public function find($name) { @@ -632,8 +594,6 @@ class Application * @param string $namespace A namespace name * * @return Command[] An array of Command instances - * - * @api */ public function all($namespace = null) { diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index 3e298b5a62..bd899158c4 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -25,8 +25,6 @@ use Symfony\Component\Console\Helper\HelperSet; * Base class for all commands. * * @author Fabien Potencier - * - * @api */ class Command { @@ -49,8 +47,6 @@ class Command * @param string $name The name of the command * * @throws \LogicException When the command name is empty - * - * @api */ public function __construct($name = null) { @@ -85,8 +81,6 @@ class Command * Sets the application instance for this command. * * @param Application $application An Application instance - * - * @api */ public function setApplication(Application $application = null) { @@ -122,8 +116,6 @@ class Command * Gets the application instance for this command. * * @return Application An Application instance - * - * @api */ public function getApplication() { @@ -215,8 +207,6 @@ class Command * * @see setCode() * @see execute() - * - * @api */ public function run(InputInterface $input, OutputInterface $output) { @@ -272,8 +262,6 @@ class Command * @throws \InvalidArgumentException * * @see execute() - * - * @api */ public function setCode($code) { @@ -319,8 +307,6 @@ class Command * @param array|InputDefinition $definition An array of argument and option instances or a definition instance * * @return Command The current instance - * - * @api */ public function setDefinition($definition) { @@ -339,8 +325,6 @@ class Command * Gets the InputDefinition attached to this Command. * * @return InputDefinition An InputDefinition instance - * - * @api */ public function getDefinition() { @@ -371,8 +355,6 @@ class Command * @param mixed $default The default value (for InputArgument::OPTIONAL mode only) * * @return Command The current instance - * - * @api */ public function addArgument($name, $mode = null, $description = '', $default = null) { @@ -391,8 +373,6 @@ class Command * @param mixed $default The default value (must be null for InputOption::VALUE_REQUIRED or InputOption::VALUE_NONE) * * @return Command The current instance - * - * @api */ public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null) { @@ -414,8 +394,6 @@ class Command * @return Command The current instance * * @throws \InvalidArgumentException When command name given is empty - * - * @api */ public function setName($name) { @@ -430,8 +408,6 @@ class Command * Returns the command name. * * @return string The command name - * - * @api */ public function getName() { @@ -444,8 +420,6 @@ class Command * @param string $description The description for the command * * @return Command The current instance - * - * @api */ public function setDescription($description) { @@ -458,8 +432,6 @@ class Command * Returns the description for the command. * * @return string The description for the command - * - * @api */ public function getDescription() { @@ -472,8 +444,6 @@ class Command * @param string $help The help for the command * * @return Command The current instance - * - * @api */ public function setHelp($help) { @@ -486,8 +456,6 @@ class Command * Returns the help for the command. * * @return string The help for the command - * - * @api */ public function getHelp() { @@ -522,8 +490,6 @@ class Command * @param string[] $aliases An array of aliases for the command * * @return Command The current instance - * - * @api */ public function setAliases($aliases) { @@ -544,8 +510,6 @@ class Command * Returns the aliases for the command. * * @return array An array of aliases for the command - * - * @api */ public function getAliases() { @@ -574,8 +538,6 @@ class Command * @return mixed The helper value * * @throws \InvalidArgumentException if the helper is not defined - * - * @api */ public function getHelper($name) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 331b204fec..7a78eb2f80 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter; * Formatter class for console output. * * @author Konstantin Kudryashov - * - * @api */ class OutputFormatter implements OutputFormatterInterface { @@ -41,8 +39,6 @@ class OutputFormatter implements OutputFormatterInterface * * @param bool $decorated Whether this formatter should actually decorate strings * @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances - * - * @api */ public function __construct($decorated = false, array $styles = array()) { @@ -64,8 +60,6 @@ class OutputFormatter implements OutputFormatterInterface * Sets the decorated flag. * * @param bool $decorated Whether to decorate the messages or not - * - * @api */ public function setDecorated($decorated) { @@ -76,8 +70,6 @@ class OutputFormatter implements OutputFormatterInterface * Gets the decorated flag. * * @return bool true if the output will decorate messages, false otherwise - * - * @api */ public function isDecorated() { @@ -89,8 +81,6 @@ class OutputFormatter implements OutputFormatterInterface * * @param string $name The style name * @param OutputFormatterStyleInterface $style The style instance - * - * @api */ public function setStyle($name, OutputFormatterStyleInterface $style) { @@ -103,8 +93,6 @@ class OutputFormatter implements OutputFormatterInterface * @param string $name * * @return bool - * - * @api */ public function hasStyle($name) { @@ -119,8 +107,6 @@ class OutputFormatter implements OutputFormatterInterface * @return OutputFormatterStyleInterface * * @throws \InvalidArgumentException When style isn't defined - * - * @api */ public function getStyle($name) { @@ -137,8 +123,6 @@ class OutputFormatter implements OutputFormatterInterface * @param string $message The message to style * * @return string The styled message - * - * @api */ public function format($message) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php index 52efa31438..5a52ba096b 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter; * Formatter interface for console output. * * @author Konstantin Kudryashov - * - * @api */ interface OutputFormatterInterface { @@ -24,8 +22,6 @@ interface OutputFormatterInterface * Sets the decorated flag. * * @param bool $decorated Whether to decorate the messages or not - * - * @api */ public function setDecorated($decorated); @@ -33,8 +29,6 @@ interface OutputFormatterInterface * Gets the decorated flag. * * @return bool true if the output will decorate messages, false otherwise - * - * @api */ public function isDecorated(); @@ -43,8 +37,6 @@ interface OutputFormatterInterface * * @param string $name The style name * @param OutputFormatterStyleInterface $style The style instance - * - * @api */ public function setStyle($name, OutputFormatterStyleInterface $style); @@ -54,8 +46,6 @@ interface OutputFormatterInterface * @param string $name * * @return bool - * - * @api */ public function hasStyle($name); @@ -65,8 +55,6 @@ interface OutputFormatterInterface * @param string $name * * @return OutputFormatterStyleInterface - * - * @api */ public function getStyle($name); @@ -76,8 +64,6 @@ interface OutputFormatterInterface * @param string $message The message to style * * @return string The styled message - * - * @api */ public function format($message); } diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php index 0438d4bc03..c2559c3692 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter; * Formatter style class for defining styles. * * @author Konstantin Kudryashov - * - * @api */ class OutputFormatterStyle implements OutputFormatterStyleInterface { @@ -60,8 +58,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface * @param string|null $foreground The style foreground color name * @param string|null $background The style background color name * @param array $options The style options - * - * @api */ public function __construct($foreground = null, $background = null, array $options = array()) { @@ -82,8 +78,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface * @param string|null $color The color name * * @throws \InvalidArgumentException When the color name isn't defined - * - * @api */ public function setForeground($color = null) { @@ -110,8 +104,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface * @param string|null $color The color name * * @throws \InvalidArgumentException When the color name isn't defined - * - * @api */ public function setBackground($color = null) { @@ -138,8 +130,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface * @param string $option The option name * * @throws \InvalidArgumentException When the option name isn't defined - * - * @api */ public function setOption($option) { diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php index e8642b3c73..c36fda8070 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter; * Formatter style interface for defining styles. * * @author Konstantin Kudryashov - * - * @api */ interface OutputFormatterStyleInterface { @@ -24,8 +22,6 @@ interface OutputFormatterStyleInterface * Sets style foreground color. * * @param string $color The color name - * - * @api */ public function setForeground($color = null); @@ -33,8 +29,6 @@ interface OutputFormatterStyleInterface * Sets style background color. * * @param string $color The color name - * - * @api */ public function setBackground($color = null); @@ -42,8 +36,6 @@ interface OutputFormatterStyleInterface * Sets some specific style option. * * @param string $option The option name - * - * @api */ public function setOption($option); diff --git a/src/Symfony/Component/Console/Helper/HelperInterface.php b/src/Symfony/Component/Console/Helper/HelperInterface.php index 6d394496f6..5a923e0a88 100644 --- a/src/Symfony/Component/Console/Helper/HelperInterface.php +++ b/src/Symfony/Component/Console/Helper/HelperInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Helper; * HelperInterface is the interface all helpers must implement. * * @author Fabien Potencier - * - * @api */ interface HelperInterface { @@ -24,8 +22,6 @@ interface HelperInterface * Sets the helper set associated with this helper. * * @param HelperSet $helperSet A HelperSet instance - * - * @api */ public function setHelperSet(HelperSet $helperSet = null); @@ -33,8 +29,6 @@ interface HelperInterface * Gets the helper set associated with this helper. * * @return HelperSet A HelperSet instance - * - * @api */ public function getHelperSet(); @@ -42,8 +36,6 @@ interface HelperInterface * Returns the canonical name of this helper. * * @return string The canonical name - * - * @api */ public function getName(); } diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php index a6c2132797..43b28d5e7f 100644 --- a/src/Symfony/Component/Console/Input/ArgvInput.php +++ b/src/Symfony/Component/Console/Input/ArgvInput.php @@ -35,8 +35,6 @@ namespace Symfony\Component\Console\Input; * * @see http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html * @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02 - * - * @api */ class ArgvInput extends Input { @@ -48,8 +46,6 @@ class ArgvInput extends Input * * @param array $argv An array of parameters from the CLI (in the argv format) * @param InputDefinition $definition A InputDefinition instance - * - * @api */ public function __construct(array $argv = null, InputDefinition $definition = null) { diff --git a/src/Symfony/Component/Console/Input/ArrayInput.php b/src/Symfony/Component/Console/Input/ArrayInput.php index 5743bb8af1..99c9788421 100644 --- a/src/Symfony/Component/Console/Input/ArrayInput.php +++ b/src/Symfony/Component/Console/Input/ArrayInput.php @@ -19,8 +19,6 @@ namespace Symfony\Component\Console\Input; * $input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar')); * * @author Fabien Potencier - * - * @api */ class ArrayInput extends Input { @@ -31,8 +29,6 @@ class ArrayInput extends Input * * @param array $parameters An array of parameters * @param InputDefinition $definition A InputDefinition instance - * - * @api */ public function __construct(array $parameters, InputDefinition $definition = null) { diff --git a/src/Symfony/Component/Console/Input/InputArgument.php b/src/Symfony/Component/Console/Input/InputArgument.php index 1167da9a50..69edecbc26 100644 --- a/src/Symfony/Component/Console/Input/InputArgument.php +++ b/src/Symfony/Component/Console/Input/InputArgument.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Input; * Represents a command line argument. * * @author Fabien Potencier - * - * @api */ class InputArgument { @@ -38,8 +36,6 @@ class InputArgument * @param mixed $default The default value (for self::OPTIONAL mode only) * * @throws \InvalidArgumentException When argument mode is not valid - * - * @api */ public function __construct($name, $mode = null, $description = '', $default = null) { diff --git a/src/Symfony/Component/Console/Input/InputDefinition.php b/src/Symfony/Component/Console/Input/InputDefinition.php index d9713eb469..d4bb065824 100644 --- a/src/Symfony/Component/Console/Input/InputDefinition.php +++ b/src/Symfony/Component/Console/Input/InputDefinition.php @@ -25,8 +25,6 @@ use Symfony\Component\Console\Descriptor\XmlDescriptor; * )); * * @author Fabien Potencier - * - * @api */ class InputDefinition { @@ -41,8 +39,6 @@ class InputDefinition * Constructor. * * @param array $definition An array of InputArgument and InputOption instance - * - * @api */ public function __construct(array $definition = array()) { @@ -53,8 +49,6 @@ class InputDefinition * Sets the definition of the input. * * @param array $definition The definition array - * - * @api */ public function setDefinition(array $definition) { @@ -76,8 +70,6 @@ class InputDefinition * Sets the InputArgument objects. * * @param InputArgument[] $arguments An array of InputArgument objects - * - * @api */ public function setArguments($arguments = array()) { @@ -92,8 +84,6 @@ class InputDefinition * Adds an array of InputArgument objects. * * @param InputArgument[] $arguments An array of InputArgument objects - * - * @api */ public function addArguments($arguments = array()) { @@ -110,8 +100,6 @@ class InputDefinition * @param InputArgument $argument An InputArgument object * * @throws \LogicException When incorrect argument is given - * - * @api */ public function addArgument(InputArgument $argument) { @@ -148,8 +136,6 @@ class InputDefinition * @return InputArgument An InputArgument object * * @throws \InvalidArgumentException When argument given doesn't exist - * - * @api */ public function getArgument($name) { @@ -168,8 +154,6 @@ class InputDefinition * @param string|int $name The InputArgument name or position * * @return bool true if the InputArgument object exists, false otherwise - * - * @api */ public function hasArgument($name) { @@ -182,8 +166,6 @@ class InputDefinition * Gets the array of InputArgument objects. * * @return InputArgument[] An array of InputArgument objects - * - * @api */ public function getArguments() { @@ -229,8 +211,6 @@ class InputDefinition * Sets the InputOption objects. * * @param InputOption[] $options An array of InputOption objects - * - * @api */ public function setOptions($options = array()) { @@ -243,8 +223,6 @@ class InputDefinition * Adds an array of InputOption objects. * * @param InputOption[] $options An array of InputOption objects - * - * @api */ public function addOptions($options = array()) { @@ -259,8 +237,6 @@ class InputDefinition * @param InputOption $option An InputOption object * * @throws \LogicException When option given already exist - * - * @api */ public function addOption(InputOption $option) { @@ -292,8 +268,6 @@ class InputDefinition * @return InputOption A InputOption object * * @throws \InvalidArgumentException When option given doesn't exist - * - * @api */ public function getOption($name) { @@ -310,8 +284,6 @@ class InputDefinition * @param string $name The InputOption name * * @return bool true if the InputOption object exists, false otherwise - * - * @api */ public function hasOption($name) { @@ -322,8 +294,6 @@ class InputDefinition * Gets the array of InputOption objects. * * @return InputOption[] An array of InputOption objects - * - * @api */ public function getOptions() { diff --git a/src/Symfony/Component/Console/Input/InputOption.php b/src/Symfony/Component/Console/Input/InputOption.php index 3a48ca36d5..167f19901a 100644 --- a/src/Symfony/Component/Console/Input/InputOption.php +++ b/src/Symfony/Component/Console/Input/InputOption.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Input; * Represents a command line option. * * @author Fabien Potencier - * - * @api */ class InputOption { @@ -41,8 +39,6 @@ class InputOption * @param mixed $default The default value (must be null for self::VALUE_REQUIRED or self::VALUE_NONE) * * @throws \InvalidArgumentException If option mode is invalid or incompatible - * - * @api */ public function __construct($name, $shortcut = null, $mode = null, $description = '', $default = null) { diff --git a/src/Symfony/Component/Console/Input/StringInput.php b/src/Symfony/Component/Console/Input/StringInput.php index 7f87f714c4..6e68bf4b8b 100644 --- a/src/Symfony/Component/Console/Input/StringInput.php +++ b/src/Symfony/Component/Console/Input/StringInput.php @@ -19,8 +19,6 @@ namespace Symfony\Component\Console\Input; * $input = new StringInput('foo --bar="foobar"'); * * @author Fabien Potencier - * - * @api */ class StringInput extends ArgvInput { @@ -34,8 +32,6 @@ class StringInput extends ArgvInput * @param InputDefinition $definition A InputDefinition instance * * @deprecated The second argument is deprecated as it does not work (will be removed in 3.0), use 'bind' method instead - * - * @api */ public function __construct($input, InputDefinition $definition = null) { diff --git a/src/Symfony/Component/Console/Output/ConsoleOutput.php b/src/Symfony/Component/Console/Output/ConsoleOutput.php index 04bd51b782..8e6821e5e3 100644 --- a/src/Symfony/Component/Console/Output/ConsoleOutput.php +++ b/src/Symfony/Component/Console/Output/ConsoleOutput.php @@ -25,8 +25,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface; * $output = new StreamOutput(fopen('php://stdout', 'w')); * * @author Fabien Potencier - * - * @api */ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface { @@ -41,8 +39,6 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) * @param bool|null $decorated Whether to decorate messages (null for auto-guessing) * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) - * - * @api */ public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null) { diff --git a/src/Symfony/Component/Console/Output/NullOutput.php b/src/Symfony/Component/Console/Output/NullOutput.php index c75cfcae98..acd872d449 100644 --- a/src/Symfony/Component/Console/Output/NullOutput.php +++ b/src/Symfony/Component/Console/Output/NullOutput.php @@ -21,8 +21,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class NullOutput implements OutputInterface { diff --git a/src/Symfony/Component/Console/Output/Output.php b/src/Symfony/Component/Console/Output/Output.php index 93524d5ab8..d94e03e0c7 100644 --- a/src/Symfony/Component/Console/Output/Output.php +++ b/src/Symfony/Component/Console/Output/Output.php @@ -26,8 +26,6 @@ use Symfony\Component\Console\Formatter\OutputFormatter; * * quiet: -q (no output) * * @author Fabien Potencier - * - * @api */ abstract class Output implements OutputInterface { @@ -40,8 +38,6 @@ abstract class Output implements OutputInterface * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) * @param bool $decorated Whether to decorate messages * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) - * - * @api */ public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null) { diff --git a/src/Symfony/Component/Console/Output/OutputInterface.php b/src/Symfony/Component/Console/Output/OutputInterface.php index edffb9ca8e..9a956e25db 100644 --- a/src/Symfony/Component/Console/Output/OutputInterface.php +++ b/src/Symfony/Component/Console/Output/OutputInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface; * OutputInterface is the interface implemented by all Output classes. * * @author Fabien Potencier - * - * @api */ interface OutputInterface { @@ -40,8 +38,6 @@ interface OutputInterface * @param int $type The type of output (one of the OUTPUT constants) * * @throws \InvalidArgumentException When unknown output type is given - * - * @api */ public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL); @@ -52,8 +48,6 @@ interface OutputInterface * @param int $type The type of output (one of the OUTPUT constants) * * @throws \InvalidArgumentException When unknown output type is given - * - * @api */ public function writeln($messages, $type = self::OUTPUT_NORMAL); @@ -61,8 +55,6 @@ interface OutputInterface * Sets the verbosity of the output. * * @param int $level The level of verbosity (one of the VERBOSITY constants) - * - * @api */ public function setVerbosity($level); @@ -70,8 +62,6 @@ interface OutputInterface * Gets the current verbosity of the output. * * @return int The current level of verbosity (one of the VERBOSITY constants) - * - * @api */ public function getVerbosity(); @@ -79,8 +69,6 @@ interface OutputInterface * Sets the decorated flag. * * @param bool $decorated Whether to decorate the messages - * - * @api */ public function setDecorated($decorated); @@ -88,8 +76,6 @@ interface OutputInterface * Gets the decorated flag. * * @return bool true if the output will decorate messages, false otherwise - * - * @api */ public function isDecorated(); @@ -97,8 +83,6 @@ interface OutputInterface * Sets output formatter. * * @param OutputFormatterInterface $formatter - * - * @api */ public function setFormatter(OutputFormatterInterface $formatter); @@ -106,8 +90,6 @@ interface OutputInterface * Returns current output formatter instance. * * @return OutputFormatterInterface - * - * @api */ public function getFormatter(); } diff --git a/src/Symfony/Component/Console/Output/StreamOutput.php b/src/Symfony/Component/Console/Output/StreamOutput.php index 70623681dc..cc39ea108c 100644 --- a/src/Symfony/Component/Console/Output/StreamOutput.php +++ b/src/Symfony/Component/Console/Output/StreamOutput.php @@ -25,8 +25,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface; * $output = new StreamOutput(fopen('/path/to/output.log', 'a', false)); * * @author Fabien Potencier - * - * @api */ class StreamOutput extends Output { @@ -41,8 +39,6 @@ class StreamOutput extends Output * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) * * @throws \InvalidArgumentException When first argument is not a real stream - * - * @api */ public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null) { diff --git a/src/Symfony/Component/CssSelector/CssSelector.php b/src/Symfony/Component/CssSelector/CssSelector.php index 82c9283ea2..579700a61c 100644 --- a/src/Symfony/Component/CssSelector/CssSelector.php +++ b/src/Symfony/Component/CssSelector/CssSelector.php @@ -61,8 +61,6 @@ use Symfony\Component\CssSelector\XPath\Translator; * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @author Fabien Potencier - * - * @api */ class CssSelector { @@ -77,8 +75,6 @@ class CssSelector * @param string $prefix An optional prefix for the XPath expression. * * @return string - * - * @api */ public static function toXPath($cssExpr, $prefix = 'descendant-or-self::') { diff --git a/src/Symfony/Component/DependencyInjection/Alias.php b/src/Symfony/Component/DependencyInjection/Alias.php index 025a2d635e..5a6c2feda7 100644 --- a/src/Symfony/Component/DependencyInjection/Alias.php +++ b/src/Symfony/Component/DependencyInjection/Alias.php @@ -11,9 +11,6 @@ namespace Symfony\Component\DependencyInjection; -/** - * @api - */ class Alias { private $id; @@ -24,8 +21,6 @@ class Alias * * @param string $id Alias identifier * @param bool $public If this alias is public - * - * @api */ public function __construct($id, $public = true) { @@ -37,8 +32,6 @@ class Alias * Checks if this DI Alias should be public or not. * * @return bool - * - * @api */ public function isPublic() { @@ -49,8 +42,6 @@ class Alias * Sets if this Alias is public. * * @param bool $boolean If this Alias should be public - * - * @api */ public function setPublic($boolean) { @@ -61,8 +52,6 @@ class Alias * Returns the Id of this alias. * * @return string The alias id - * - * @api */ public function __toString() { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php b/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php index 36d0604cf8..182e730e88 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php @@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; * This class is used to remove circular dependencies between individual passes. * * @author Johannes M. Schmitt - * - * @api */ class Compiler { @@ -42,8 +40,6 @@ class Compiler * Returns the PassConfig. * * @return PassConfig The PassConfig instance - * - * @api */ public function getPassConfig() { @@ -54,8 +50,6 @@ class Compiler * Returns the ServiceReferenceGraph. * * @return ServiceReferenceGraph The ServiceReferenceGraph instance - * - * @api */ public function getServiceReferenceGraph() { @@ -77,8 +71,6 @@ class Compiler * * @param CompilerPassInterface $pass A compiler pass * @param string $type The type of the pass - * - * @api */ public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) { @@ -109,8 +101,6 @@ class Compiler * Run the Compiler and process all Passes. * * @param ContainerBuilder $container - * - * @api */ public function compile(ContainerBuilder $container) { diff --git a/src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php b/src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php index 7648605451..30cb1d5d46 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; * Interface that must be implemented by compilation passes. * * @author Johannes M. Schmitt - * - * @api */ interface CompilerPassInterface { @@ -26,8 +24,6 @@ interface CompilerPassInterface * You can modify the container here before it is dumped to PHP code. * * @param ContainerBuilder $container - * - * @api */ public function process(ContainerBuilder $container); } diff --git a/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php b/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php index 750c750685..7fb47f82b3 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php @@ -19,8 +19,6 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; * This class has a default configuration embedded. * * @author Johannes M. Schmitt - * - * @api */ class PassConfig { @@ -77,8 +75,6 @@ class PassConfig * Returns all passes in order to be processed. * * @return array An array of all passes to process - * - * @api */ public function getPasses() { @@ -99,8 +95,6 @@ class PassConfig * @param string $type The pass type * * @throws InvalidArgumentException when a pass type doesn't exist - * - * @api */ public function addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION) { @@ -117,8 +111,6 @@ class PassConfig * Gets all passes for the AfterRemoving pass. * * @return array An array of passes - * - * @api */ public function getAfterRemovingPasses() { @@ -129,8 +121,6 @@ class PassConfig * Gets all passes for the BeforeOptimization pass. * * @return array An array of passes - * - * @api */ public function getBeforeOptimizationPasses() { @@ -141,8 +131,6 @@ class PassConfig * Gets all passes for the BeforeRemoving pass. * * @return array An array of passes - * - * @api */ public function getBeforeRemovingPasses() { @@ -153,8 +141,6 @@ class PassConfig * Gets all passes for the Optimization pass. * * @return array An array of passes - * - * @api */ public function getOptimizationPasses() { @@ -165,8 +151,6 @@ class PassConfig * Gets all passes for the Removing pass. * * @return array An array of passes - * - * @api */ public function getRemovingPasses() { @@ -177,8 +161,6 @@ class PassConfig * Gets all passes for the Merge pass. * * @return array An array of passes - * - * @api */ public function getMergePass() { @@ -189,8 +171,6 @@ class PassConfig * Sets the Merge Pass. * * @param CompilerPassInterface $pass The merge pass - * - * @api */ public function setMergePass(CompilerPassInterface $pass) { @@ -201,8 +181,6 @@ class PassConfig * Sets the AfterRemoving passes. * * @param array $passes An array of passes - * - * @api */ public function setAfterRemovingPasses(array $passes) { @@ -213,8 +191,6 @@ class PassConfig * Sets the BeforeOptimization passes. * * @param array $passes An array of passes - * - * @api */ public function setBeforeOptimizationPasses(array $passes) { @@ -225,8 +201,6 @@ class PassConfig * Sets the BeforeRemoving passes. * * @param array $passes An array of passes - * - * @api */ public function setBeforeRemovingPasses(array $passes) { @@ -237,8 +211,6 @@ class PassConfig * Sets the Optimization passes. * * @param array $passes An array of passes - * - * @api */ public function setOptimizationPasses(array $passes) { @@ -249,8 +221,6 @@ class PassConfig * Sets the Removing passes. * * @param array $passes An array of passes - * - * @api */ public function setRemovingPasses(array $passes) { diff --git a/src/Symfony/Component/DependencyInjection/Container.php b/src/Symfony/Component/DependencyInjection/Container.php index 483429e4de..443a65fb41 100644 --- a/src/Symfony/Component/DependencyInjection/Container.php +++ b/src/Symfony/Component/DependencyInjection/Container.php @@ -57,8 +57,6 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; * * @author Fabien Potencier * @author Johannes M. Schmitt - * - * @api */ class Container implements IntrospectableContainerInterface { @@ -82,8 +80,6 @@ class Container implements IntrospectableContainerInterface * Constructor. * * @param ParameterBagInterface $parameterBag A ParameterBagInterface instance - * - * @api */ public function __construct(ParameterBagInterface $parameterBag = null) { @@ -104,8 +100,6 @@ class Container implements IntrospectableContainerInterface * * * Parameter values are resolved; * * The parameter bag is frozen. - * - * @api */ public function compile() { @@ -118,8 +112,6 @@ class Container implements IntrospectableContainerInterface * Returns true if the container parameter bag are frozen. * * @return bool true if the container parameter bag are frozen, false otherwise - * - * @api */ public function isFrozen() { @@ -130,8 +122,6 @@ class Container implements IntrospectableContainerInterface * Gets the service container parameter bag. * * @return ParameterBagInterface A ParameterBagInterface instance - * - * @api */ public function getParameterBag() { @@ -146,8 +136,6 @@ class Container implements IntrospectableContainerInterface * @return mixed The parameter value * * @throws InvalidArgumentException if the parameter is not defined - * - * @api */ public function getParameter($name) { @@ -160,8 +148,6 @@ class Container implements IntrospectableContainerInterface * @param string $name The parameter name * * @return bool The presence of parameter in container - * - * @api */ public function hasParameter($name) { @@ -173,8 +159,6 @@ class Container implements IntrospectableContainerInterface * * @param string $name The parameter name * @param mixed $value The parameter value - * - * @api */ public function setParameter($name, $value) { @@ -193,8 +177,6 @@ class Container implements IntrospectableContainerInterface * * @throws RuntimeException When trying to set a service in an inactive scope * @throws InvalidArgumentException When trying to set a service in the prototype scope - * - * @api */ public function set($id, $service, $scope = self::SCOPE_CONTAINER) { @@ -239,8 +221,6 @@ class Container implements IntrospectableContainerInterface * @param string $id The service identifier * * @return bool true if the service is defined, false otherwise - * - * @api */ public function has($id) { @@ -276,8 +256,6 @@ class Container implements IntrospectableContainerInterface * @throws \Exception if an exception has been thrown when the service has been resolved * * @see Reference - * - * @api */ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) { @@ -402,8 +380,6 @@ class Container implements IntrospectableContainerInterface * * @throws RuntimeException When the parent scope is inactive * @throws InvalidArgumentException When the scope does not exist - * - * @api */ public function enterScope($name) { @@ -450,8 +426,6 @@ class Container implements IntrospectableContainerInterface * @param string $name The name of the scope to leave * * @throws InvalidArgumentException if the scope is not active - * - * @api */ public function leaveScope($name) { @@ -492,8 +466,6 @@ class Container implements IntrospectableContainerInterface * @param ScopeInterface $scope * * @throws InvalidArgumentException - * - * @api */ public function addScope(ScopeInterface $scope) { @@ -526,8 +498,6 @@ class Container implements IntrospectableContainerInterface * @param string $name The name of the scope * * @return bool - * - * @api */ public function hasScope($name) { @@ -542,8 +512,6 @@ class Container implements IntrospectableContainerInterface * @param string $name * * @return bool - * - * @api */ public function isScopeActive($name) { diff --git a/src/Symfony/Component/DependencyInjection/ContainerAware.php b/src/Symfony/Component/DependencyInjection/ContainerAware.php index 4096915311..af977fea03 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerAware.php +++ b/src/Symfony/Component/DependencyInjection/ContainerAware.php @@ -15,15 +15,11 @@ namespace Symfony\Component\DependencyInjection; * A simple implementation of ContainerAwareInterface. * * @author Fabien Potencier - * - * @api */ abstract class ContainerAware implements ContainerAwareInterface { /** * @var ContainerInterface - * - * @api */ protected $container; @@ -31,8 +27,6 @@ abstract class ContainerAware implements ContainerAwareInterface * Sets the Container associated with this Controller. * * @param ContainerInterface $container A ContainerInterface instance - * - * @api */ public function setContainer(ContainerInterface $container = null) { diff --git a/src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php b/src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php index e85bb53dcb..7007265ac8 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php +++ b/src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection; * ContainerAwareInterface should be implemented by classes that depends on a Container. * * @author Fabien Potencier - * - * @api */ interface ContainerAwareInterface { @@ -24,8 +22,6 @@ interface ContainerAwareInterface * Sets the Container. * * @param ContainerInterface|null $container A ContainerInterface instance or null - * - * @api */ public function setContainer(ContainerInterface $container = null); } diff --git a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php index 3936ec585d..8b677ddf75 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerBuilder.php +++ b/src/Symfony/Component/DependencyInjection/ContainerBuilder.php @@ -29,8 +29,6 @@ use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInst * ContainerBuilder is a DI container that provides an API to easily describe services. * * @author Fabien Potencier - * - * @api */ class ContainerBuilder extends Container implements TaggedContainerInterface { @@ -115,8 +113,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Registers an extension. * * @param ExtensionInterface $extension An extension instance - * - * @api */ public function registerExtension(ExtensionInterface $extension) { @@ -135,8 +131,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @return ExtensionInterface An extension instance * * @throws LogicException if the extension is not registered - * - * @api */ public function getExtension($name) { @@ -155,8 +149,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns all registered extensions. * * @return ExtensionInterface[] An array of ExtensionInterface - * - * @api */ public function getExtensions() { @@ -169,8 +161,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $name The name of the extension * * @return bool If the extension exists - * - * @api */ public function hasExtension($name) { @@ -181,8 +171,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns an array of resources loaded to build this configuration. * * @return ResourceInterface[] An array of resources - * - * @api */ public function getResources() { @@ -195,8 +183,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param ResourceInterface $resource A resource instance * * @return ContainerBuilder The current instance - * - * @api */ public function addResource(ResourceInterface $resource) { @@ -215,8 +201,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param ResourceInterface[] $resources An array of resources * * @return ContainerBuilder The current instance - * - * @api */ public function setResources(array $resources) { @@ -235,8 +219,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param object $object An object instance * * @return ContainerBuilder The current instance - * - * @api */ public function addObjectResource($object) { @@ -277,8 +259,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @throws BadMethodCallException When this ContainerBuilder is frozen * @throws \LogicException if the container is frozen - * - * @api */ public function loadFromExtension($extension, array $values = array()) { @@ -300,8 +280,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $type The type of compiler pass * * @return ContainerBuilder The current instance - * - * @api */ public function addCompilerPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) { @@ -320,8 +298,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns the compiler pass config which can then be modified. * * @return PassConfig The compiler pass config - * - * @api */ public function getCompilerPassConfig() { @@ -336,8 +312,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns the compiler. * * @return Compiler The compiler - * - * @api */ public function getCompiler() { @@ -352,8 +326,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns all Scopes. * * @return array An array of scopes - * - * @api */ public function getScopes() { @@ -364,8 +336,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Returns all Scope children. * * @return array An array of scope children. - * - * @api */ public function getScopeChildren() { @@ -380,8 +350,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $scope The scope * * @throws BadMethodCallException When this ContainerBuilder is frozen - * - * @api */ public function set($id, $service, $scope = self::SCOPE_CONTAINER) { @@ -417,8 +385,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Removes a service definition. * * @param string $id The service identifier - * - * @api */ public function removeDefinition($id) { @@ -431,8 +397,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $id The service identifier * * @return bool true if the service is defined, false otherwise - * - * @api */ public function has($id) { @@ -455,8 +419,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @throws \Exception * * @see Reference - * - * @api */ public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) { @@ -524,8 +486,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param ContainerBuilder $container The ContainerBuilder instance to merge. * * @throws BadMethodCallException When this ContainerBuilder is frozen - * - * @api */ public function merge(ContainerBuilder $container) { @@ -558,8 +518,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $name The name of the extension * * @return array An array of configuration - * - * @api */ public function getExtensionConfig($name) { @@ -598,8 +556,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * Parameter values are resolved; * * The parameter bag is frozen; * * Extension loading is disabled. - * - * @api */ public function compile() { @@ -642,8 +598,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Adds the service aliases. * * @param array $aliases An array of aliases - * - * @api */ public function addAliases(array $aliases) { @@ -656,8 +610,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Sets the service aliases. * * @param array $aliases An array of aliases - * - * @api */ public function setAliases(array $aliases) { @@ -673,8 +625,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * * @throws InvalidArgumentException if the id is not a string or an Alias * @throws InvalidArgumentException if the alias is for itself - * - * @api */ public function setAlias($alias, $id) { @@ -699,8 +649,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Removes an alias. * * @param string $alias The alias to remove - * - * @api */ public function removeAlias($alias) { @@ -713,8 +661,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $id The service identifier * * @return bool true if the alias exists, false otherwise - * - * @api */ public function hasAlias($id) { @@ -725,8 +671,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Gets all defined aliases. * * @return Alias[] An array of aliases - * - * @api */ public function getAliases() { @@ -741,8 +685,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @return Alias An Alias instance * * @throws InvalidArgumentException if the alias does not exist - * - * @api */ public function getAlias($id) { @@ -765,8 +707,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $class The service class * * @return Definition A Definition instance - * - * @api */ public function register($id, $class = null) { @@ -777,8 +717,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Adds the service definitions. * * @param Definition[] $definitions An array of service definitions - * - * @api */ public function addDefinitions(array $definitions) { @@ -791,8 +729,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Sets the service definitions. * * @param Definition[] $definitions An array of service definitions - * - * @api */ public function setDefinitions(array $definitions) { @@ -804,8 +740,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * Gets all service definitions. * * @return Definition[] An array of Definition instances - * - * @api */ public function getDefinitions() { @@ -821,8 +755,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @return Definition the service definition * * @throws BadMethodCallException When this ContainerBuilder is frozen - * - * @api */ public function setDefinition($id, Definition $definition) { @@ -843,8 +775,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $id The service identifier * * @return bool true if the service definition exists, false otherwise - * - * @api */ public function hasDefinition($id) { @@ -859,8 +789,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @return Definition A Definition instance * * @throws InvalidArgumentException if the service definition does not exist - * - * @api */ public function getDefinition($id) { @@ -883,8 +811,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @return Definition A Definition instance * * @throws InvalidArgumentException if the service definition does not exist - * - * @api */ public function findDefinition($id) { @@ -1026,8 +952,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface * @param string $name The tag name * * @return array An array of tags with the tagged service as key, holding a list of attribute arrays. - * - * @api */ public function findTaggedServiceIds($name) { diff --git a/src/Symfony/Component/DependencyInjection/ContainerInterface.php b/src/Symfony/Component/DependencyInjection/ContainerInterface.php index 19e800b314..80d6414ac1 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerInterface.php +++ b/src/Symfony/Component/DependencyInjection/ContainerInterface.php @@ -20,8 +20,6 @@ use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; * * @author Fabien Potencier * @author Johannes M. Schmitt - * - * @api */ interface ContainerInterface { @@ -37,8 +35,6 @@ interface ContainerInterface * @param string $id The service identifier * @param object $service The service instance * @param string $scope The scope of the service - * - * @api */ public function set($id, $service, $scope = self::SCOPE_CONTAINER); @@ -54,8 +50,6 @@ interface ContainerInterface * @throws ServiceNotFoundException When the service is not defined * * @see Reference - * - * @api */ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE); @@ -65,8 +59,6 @@ interface ContainerInterface * @param string $id The service identifier * * @return bool true if the service is defined, false otherwise - * - * @api */ public function has($id); @@ -78,8 +70,6 @@ interface ContainerInterface * @return mixed The parameter value * * @throws InvalidArgumentException if the parameter is not defined - * - * @api */ public function getParameter($name); @@ -89,8 +79,6 @@ interface ContainerInterface * @param string $name The parameter name * * @return bool The presence of parameter in container - * - * @api */ public function hasParameter($name); @@ -99,8 +87,6 @@ interface ContainerInterface * * @param string $name The parameter name * @param mixed $value The parameter value - * - * @api */ public function setParameter($name, $value); @@ -108,8 +94,6 @@ interface ContainerInterface * Enters the given scope. * * @param string $name - * - * @api */ public function enterScope($name); @@ -117,8 +101,6 @@ interface ContainerInterface * Leaves the current scope, and re-enters the parent scope. * * @param string $name - * - * @api */ public function leaveScope($name); @@ -126,8 +108,6 @@ interface ContainerInterface * Adds a scope to the container. * * @param ScopeInterface $scope - * - * @api */ public function addScope(ScopeInterface $scope); @@ -137,8 +117,6 @@ interface ContainerInterface * @param string $name * * @return bool - * - * @api */ public function hasScope($name); @@ -150,8 +128,6 @@ interface ContainerInterface * @param string $name * * @return bool - * - * @api */ public function isScopeActive($name); } diff --git a/src/Symfony/Component/DependencyInjection/Definition.php b/src/Symfony/Component/DependencyInjection/Definition.php index 7b097dcf75..e2b40ff4b9 100644 --- a/src/Symfony/Component/DependencyInjection/Definition.php +++ b/src/Symfony/Component/DependencyInjection/Definition.php @@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException; * Definition represents a service definition. * * @author Fabien Potencier - * - * @api */ class Definition { @@ -46,8 +44,6 @@ class Definition * * @param string $class The service class * @param array $arguments An array of arguments to pass to the service constructor - * - * @api */ public function __construct($class = null, array $arguments = array()) { @@ -71,8 +67,6 @@ class Definition * @param string $factoryClass The factory class name * * @return Definition The current instance - * - * @api */ public function setFactoryClass($factoryClass) { @@ -85,8 +79,6 @@ class Definition * Gets the factory class. * * @return string The factory class name - * - * @api */ public function getFactoryClass() { @@ -99,8 +91,6 @@ class Definition * @param string $factoryMethod The factory method name * * @return Definition The current instance - * - * @api */ public function setFactoryMethod($factoryMethod) { @@ -113,8 +103,6 @@ class Definition * Gets the factory method. * * @return string The factory method name - * - * @api */ public function getFactoryMethod() { @@ -127,8 +115,6 @@ class Definition * @param string $factoryService The factory service id * * @return Definition The current instance - * - * @api */ public function setFactoryService($factoryService) { @@ -141,8 +127,6 @@ class Definition * Gets the factory service id. * * @return string The factory service id - * - * @api */ public function getFactoryService() { @@ -155,8 +139,6 @@ class Definition * @param string $class The service class * * @return Definition The current instance - * - * @api */ public function setClass($class) { @@ -169,8 +151,6 @@ class Definition * Gets the service class. * * @return string The service class - * - * @api */ public function getClass() { @@ -183,8 +163,6 @@ class Definition * @param array $arguments An array of arguments * * @return Definition The current instance - * - * @api */ public function setArguments(array $arguments) { @@ -193,9 +171,6 @@ class Definition return $this; } - /** - * @api - */ public function setProperties(array $properties) { $this->properties = $properties; @@ -203,17 +178,11 @@ class Definition return $this; } - /** - * @api - */ public function getProperties() { return $this->properties; } - /** - * @api - */ public function setProperty($name, $value) { $this->properties[$name] = $value; @@ -227,8 +196,6 @@ class Definition * @param mixed $argument An argument * * @return Definition The current instance - * - * @api */ public function addArgument($argument) { @@ -246,8 +213,6 @@ class Definition * @return Definition The current instance * * @throws OutOfBoundsException When the replaced argument does not exist - * - * @api */ public function replaceArgument($index, $argument) { @@ -264,8 +229,6 @@ class Definition * Gets the arguments to pass to the service constructor/factory method. * * @return array The array of arguments - * - * @api */ public function getArguments() { @@ -280,8 +243,6 @@ class Definition * @return mixed The argument value * * @throws OutOfBoundsException When the argument does not exist - * - * @api */ public function getArgument($index) { @@ -298,8 +259,6 @@ class Definition * @param array $calls An array of method calls * * @return Definition The current instance - * - * @api */ public function setMethodCalls(array $calls = array()) { @@ -320,8 +279,6 @@ class Definition * @return Definition The current instance * * @throws InvalidArgumentException on empty $method param - * - * @api */ public function addMethodCall($method, array $arguments = array()) { @@ -339,8 +296,6 @@ class Definition * @param string $method The method name to remove * * @return Definition The current instance - * - * @api */ public function removeMethodCall($method) { @@ -360,8 +315,6 @@ class Definition * @param string $method The method name to search for * * @return bool - * - * @api */ public function hasMethodCall($method) { @@ -378,8 +331,6 @@ class Definition * Gets the methods to call after service initialization. * * @return array An array of method calls - * - * @api */ public function getMethodCalls() { @@ -392,8 +343,6 @@ class Definition * @param array $tags * * @return Definition the current instance - * - * @api */ public function setTags(array $tags) { @@ -406,8 +355,6 @@ class Definition * Returns all tags. * * @return array An array of tags - * - * @api */ public function getTags() { @@ -420,8 +367,6 @@ class Definition * @param string $name The tag name * * @return array An array of attributes - * - * @api */ public function getTag($name) { @@ -435,8 +380,6 @@ class Definition * @param array $attributes An array of attributes * * @return Definition The current instance - * - * @api */ public function addTag($name, array $attributes = array()) { @@ -451,8 +394,6 @@ class Definition * @param string $name * * @return bool - * - * @api */ public function hasTag($name) { @@ -479,8 +420,6 @@ class Definition * Clears the tags for this definition. * * @return Definition The current instance - * - * @api */ public function clearTags() { @@ -495,8 +434,6 @@ class Definition * @param string $file A full pathname to include * * @return Definition The current instance - * - * @api */ public function setFile($file) { @@ -509,8 +446,6 @@ class Definition * Gets the file to require before creating the service. * * @return string The full pathname to include - * - * @api */ public function getFile() { @@ -523,8 +458,6 @@ class Definition * @param string $scope Whether the service must be shared or not * * @return Definition The current instance - * - * @api */ public function setScope($scope) { @@ -537,8 +470,6 @@ class Definition * Returns the scope of the service. * * @return string - * - * @api */ public function getScope() { @@ -551,8 +482,6 @@ class Definition * @param bool $boolean * * @return Definition The current instance - * - * @api */ public function setPublic($boolean) { @@ -565,8 +494,6 @@ class Definition * Whether this service is public facing. * * @return bool - * - * @api */ public function isPublic() { @@ -579,8 +506,6 @@ class Definition * @param bool $boolean * * @return Definition The current instance - * - * @api */ public function setSynchronized($boolean) { @@ -593,8 +518,6 @@ class Definition * Whether this service is synchronized. * * @return bool - * - * @api */ public function isSynchronized() { @@ -632,8 +555,6 @@ class Definition * @param bool $boolean * * @return Definition the current instance - * - * @api */ public function setSynthetic($boolean) { @@ -647,8 +568,6 @@ class Definition * container, but dynamically injected. * * @return bool - * - * @api */ public function isSynthetic() { @@ -662,8 +581,6 @@ class Definition * @param bool $boolean * * @return Definition the current instance - * - * @api */ public function setAbstract($boolean) { @@ -677,8 +594,6 @@ class Definition * template for other definitions. * * @return bool - * - * @api */ public function isAbstract() { @@ -691,8 +606,6 @@ class Definition * @param callable $callable A PHP callable * * @return Definition The current instance - * - * @api */ public function setConfigurator($callable) { @@ -705,8 +618,6 @@ class Definition * Gets the configurator to call after the service is fully initialized. * * @return callable The PHP callable to call - * - * @api */ public function getConfigurator() { diff --git a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php index 724c95c40e..3de44049ab 100644 --- a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php +++ b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php @@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException; * This definition decorates another definition. * * @author Johannes M. Schmitt - * - * @api */ class DefinitionDecorator extends Definition { @@ -30,8 +28,6 @@ class DefinitionDecorator extends Definition * Constructor. * * @param string $parent The id of Definition instance to decorate. - * - * @api */ public function __construct($parent) { @@ -45,8 +41,6 @@ class DefinitionDecorator extends Definition * Returns the Definition being decorated. * * @return string - * - * @api */ public function getParent() { @@ -57,8 +51,6 @@ class DefinitionDecorator extends Definition * Returns all changes tracked for the Definition object. * * @return array An array of changes for this Definition - * - * @api */ public function getChanges() { @@ -67,8 +59,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setClass($class) { @@ -79,8 +69,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setFactoryClass($class) { @@ -91,8 +79,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setFactoryMethod($method) { @@ -103,8 +89,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setFactoryService($service) { @@ -115,8 +99,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setConfigurator($callable) { @@ -127,8 +109,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setFile($file) { @@ -139,8 +119,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setPublic($boolean) { @@ -151,8 +129,6 @@ class DefinitionDecorator extends Definition /** * {@inheritdoc} - * - * @api */ public function setLazy($boolean) { @@ -172,8 +148,6 @@ class DefinitionDecorator extends Definition * @return mixed The argument value * * @throws OutOfBoundsException When the argument does not exist - * - * @api */ public function getArgument($index) { @@ -204,8 +178,6 @@ class DefinitionDecorator extends Definition * @return DefinitionDecorator the current instance * * @throws InvalidArgumentException when $index isn't an integer - * - * @api */ public function replaceArgument($index, $value) { diff --git a/src/Symfony/Component/DependencyInjection/Dumper/Dumper.php b/src/Symfony/Component/DependencyInjection/Dumper/Dumper.php index 98924014ad..4b9d586f2c 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/Dumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/Dumper.php @@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; * Dumper is the abstract class for all built-in dumpers. * * @author Fabien Potencier - * - * @api */ abstract class Dumper implements DumperInterface { @@ -28,8 +26,6 @@ abstract class Dumper implements DumperInterface * Constructor. * * @param ContainerBuilder $container The service container to dump - * - * @api */ public function __construct(ContainerBuilder $container) { diff --git a/src/Symfony/Component/DependencyInjection/Dumper/DumperInterface.php b/src/Symfony/Component/DependencyInjection/Dumper/DumperInterface.php index ba146f61c0..dd001e4ed0 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/DumperInterface.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/DumperInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection\Dumper; * DumperInterface is the interface implemented by service container dumper classes. * * @author Fabien Potencier - * - * @api */ interface DumperInterface { @@ -26,8 +24,6 @@ interface DumperInterface * @param array $options An array of options * * @return string The representation of the service container - * - * @api */ public function dump(array $options = array()); } diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index 18ab0a8080..41e13c6007 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -29,8 +29,6 @@ use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper; * * @author Fabien Potencier * @author Johannes M. Schmitt - * - * @api */ class PhpDumper extends Dumper { @@ -63,8 +61,6 @@ class PhpDumper extends Dumper /** * {@inheritdoc} - * - * @api */ public function __construct(ContainerBuilder $container) { @@ -94,8 +90,6 @@ class PhpDumper extends Dumper * @param array $options An array of options * * @return string A PHP class representing of the service container - * - * @api */ public function dump(array $options = array()) { diff --git a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php index f8a42b5fe3..8927aab315 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php @@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException; * * @author Fabien Potencier * @author Martin Hasoň - * - * @api */ class XmlDumper extends Dumper { @@ -39,8 +37,6 @@ class XmlDumper extends Dumper * @param array $options An array of options * * @return string An xml string representing of the service container - * - * @api */ public function dump(array $options = array()) { diff --git a/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php index ddf98d985c..c5f98b6202 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php @@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException; * YamlDumper dumps a service container as a YAML string. * * @author Fabien Potencier - * - * @api */ class YamlDumper extends Dumper { @@ -36,8 +34,6 @@ class YamlDumper extends Dumper * @param array $options An array of options * * @return string A YAML string representing of the service container - * - * @api */ public function dump(array $options = array()) { diff --git a/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php b/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php index 424f02088e..1fd1baa477 100644 --- a/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php +++ b/src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; * ExtensionInterface is the interface implemented by container extension classes. * * @author Fabien Potencier - * - * @api */ interface ExtensionInterface { @@ -29,8 +27,6 @@ interface ExtensionInterface * @param ContainerBuilder $container A ContainerBuilder instance * * @throws \InvalidArgumentException When provided tag is not defined in this extension - * - * @api */ public function load(array $config, ContainerBuilder $container); @@ -38,8 +34,6 @@ interface ExtensionInterface * Returns the namespace to be used for this extension (XML namespace). * * @return string The XML namespace - * - * @api */ public function getNamespace(); @@ -47,8 +41,6 @@ interface ExtensionInterface * Returns the base path for the XSD files. * * @return string The XSD base path - * - * @api */ public function getXsdValidationBasePath(); @@ -58,8 +50,6 @@ interface ExtensionInterface * This alias is also the mandatory prefix to use when using YAML. * * @return string The alias - * - * @api */ public function getAlias(); } diff --git a/src/Symfony/Component/DependencyInjection/Parameter.php b/src/Symfony/Component/DependencyInjection/Parameter.php index 7ba8c3a630..5431ed8221 100644 --- a/src/Symfony/Component/DependencyInjection/Parameter.php +++ b/src/Symfony/Component/DependencyInjection/Parameter.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection; * Parameter represents a parameter reference. * * @author Fabien Potencier - * - * @api */ class Parameter { diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php b/src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php index 3ea6d9636b..d9fe9eceb6 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php @@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\Exception\LogicException; * Holds read-only parameters. * * @author Fabien Potencier - * - * @api */ class FrozenParameterBag extends ParameterBag { @@ -31,8 +29,6 @@ class FrozenParameterBag extends ParameterBag * This is always the case when used internally. * * @param array $parameters An array of parameters - * - * @api */ public function __construct(array $parameters = array()) { @@ -42,8 +38,6 @@ class FrozenParameterBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function clear() { @@ -52,8 +46,6 @@ class FrozenParameterBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function add(array $parameters) { @@ -62,8 +54,6 @@ class FrozenParameterBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function set($name, $value) { @@ -72,8 +62,6 @@ class FrozenParameterBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function remove($name) { diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php index 291748d4d9..3511037fb0 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php @@ -19,8 +19,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException; * Holds parameters. * * @author Fabien Potencier - * - * @api */ class ParameterBag implements ParameterBagInterface { @@ -31,8 +29,6 @@ class ParameterBag implements ParameterBagInterface * Constructor. * * @param array $parameters An array of parameters - * - * @api */ public function __construct(array $parameters = array()) { @@ -43,8 +39,6 @@ class ParameterBag implements ParameterBagInterface /** * Clears all parameters. - * - * @api */ public function clear() { @@ -55,8 +49,6 @@ class ParameterBag implements ParameterBagInterface * Adds parameters to the service container parameters. * * @param array $parameters An array of parameters - * - * @api */ public function add(array $parameters) { @@ -69,8 +61,6 @@ class ParameterBag implements ParameterBagInterface * Gets the service container parameters. * * @return array An array of parameters - * - * @api */ public function all() { @@ -85,8 +75,6 @@ class ParameterBag implements ParameterBagInterface * @return mixed The parameter value * * @throws ParameterNotFoundException if the parameter is not defined - * - * @api */ public function get($name) { @@ -116,8 +104,6 @@ class ParameterBag implements ParameterBagInterface * * @param string $name The parameter name * @param mixed $value The parameter value - * - * @api */ public function set($name, $value) { @@ -130,8 +116,6 @@ class ParameterBag implements ParameterBagInterface * @param string $name The parameter name * * @return bool true if the parameter name is defined, false otherwise - * - * @api */ public function has($name) { @@ -142,8 +126,6 @@ class ParameterBag implements ParameterBagInterface * Removes a parameter. * * @param string $name The parameter name - * - * @api */ public function remove($name) { diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php index ead76d738d..3291b373de 100644 --- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php +++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php @@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; * ParameterBagInterface. * * @author Fabien Potencier - * - * @api */ interface ParameterBagInterface { @@ -27,8 +25,6 @@ interface ParameterBagInterface * Clears all parameters. * * @throws LogicException if the ParameterBagInterface can not be cleared - * - * @api */ public function clear(); @@ -38,8 +34,6 @@ interface ParameterBagInterface * @param array $parameters An array of parameters * * @throws LogicException if the parameter can not be added - * - * @api */ public function add(array $parameters); @@ -47,8 +41,6 @@ interface ParameterBagInterface * Gets the service container parameters. * * @return array An array of parameters - * - * @api */ public function all(); @@ -60,8 +52,6 @@ interface ParameterBagInterface * @return mixed The parameter value * * @throws ParameterNotFoundException if the parameter is not defined - * - * @api */ public function get($name); @@ -72,8 +62,6 @@ interface ParameterBagInterface * @param mixed $value The parameter value * * @throws LogicException if the parameter can not be set - * - * @api */ public function set($name, $value); @@ -83,8 +71,6 @@ interface ParameterBagInterface * @param string $name The parameter name * * @return bool true if the parameter name is defined, false otherwise - * - * @api */ public function has($name); diff --git a/src/Symfony/Component/DependencyInjection/Reference.php b/src/Symfony/Component/DependencyInjection/Reference.php index 447787a787..a120e352cb 100644 --- a/src/Symfony/Component/DependencyInjection/Reference.php +++ b/src/Symfony/Component/DependencyInjection/Reference.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection; * Reference represents a service reference. * * @author Fabien Potencier - * - * @api */ class Reference { diff --git a/src/Symfony/Component/DependencyInjection/Scope.php b/src/Symfony/Component/DependencyInjection/Scope.php index 161229e44b..737fe262bd 100644 --- a/src/Symfony/Component/DependencyInjection/Scope.php +++ b/src/Symfony/Component/DependencyInjection/Scope.php @@ -15,34 +15,23 @@ namespace Symfony\Component\DependencyInjection; * Scope class. * * @author Johannes M. Schmitt - * - * @api */ class Scope implements ScopeInterface { private $name; private $parentName; - /** - * @api - */ public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER) { $this->name = $name; $this->parentName = $parentName; } - /** - * @api - */ public function getName() { return $this->name; } - /** - * @api - */ public function getParentName() { return $this->parentName; diff --git a/src/Symfony/Component/DependencyInjection/ScopeInterface.php b/src/Symfony/Component/DependencyInjection/ScopeInterface.php index 81ac67cc4d..ea5516524e 100644 --- a/src/Symfony/Component/DependencyInjection/ScopeInterface.php +++ b/src/Symfony/Component/DependencyInjection/ScopeInterface.php @@ -15,18 +15,10 @@ namespace Symfony\Component\DependencyInjection; * Scope Interface. * * @author Johannes M. Schmitt - * - * @api */ interface ScopeInterface { - /** - * @api - */ public function getName(); - /** - * @api - */ public function getParentName(); } diff --git a/src/Symfony/Component/DependencyInjection/TaggedContainerInterface.php b/src/Symfony/Component/DependencyInjection/TaggedContainerInterface.php index 3b4881703c..90b297fff2 100644 --- a/src/Symfony/Component/DependencyInjection/TaggedContainerInterface.php +++ b/src/Symfony/Component/DependencyInjection/TaggedContainerInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection; * TaggedContainerInterface is the interface implemented when a container knows how to deals with tags. * * @author Fabien Potencier - * - * @api */ interface TaggedContainerInterface extends ContainerInterface { @@ -26,8 +24,6 @@ interface TaggedContainerInterface extends ContainerInterface * @param string $name The tag name * * @return array An array of tags - * - * @api */ public function findTaggedServiceIds($name); } diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index 3bc2a456bd..9dd3daa503 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -17,8 +17,6 @@ use Symfony\Component\CssSelector\CssSelector; * Crawler eases navigation of a list of \DOMNode objects. * * @author Fabien Potencier - * - * @api */ class Crawler extends \SplObjectStorage { @@ -38,8 +36,6 @@ class Crawler extends \SplObjectStorage * @param mixed $node A Node to use as the base for the crawling * @param string $currentUri The current URI * @param string $baseHref The base href value - * - * @api */ public function __construct($node = null, $currentUri = null, $baseHref = null) { @@ -51,8 +47,6 @@ class Crawler extends \SplObjectStorage /** * Removes all the nodes. - * - * @api */ public function clear() { @@ -68,8 +62,6 @@ class Crawler extends \SplObjectStorage * @param \DOMNodeList|\DOMNode|array|string|null $node A node * * @throws \InvalidArgumentException When node is not the expected type. - * - * @api */ public function add($node) { @@ -145,8 +137,6 @@ class Crawler extends \SplObjectStorage * * @param string $content The HTML content * @param string $charset The charset - * - * @api */ public function addHtmlContent($content, $charset = 'UTF-8') { @@ -229,8 +219,6 @@ class Crawler extends \SplObjectStorage * * @param string $content The XML content * @param string $charset The charset - * - * @api */ public function addXmlContent($content, $charset = 'UTF-8') { @@ -255,8 +243,6 @@ class Crawler extends \SplObjectStorage * Adds a \DOMDocument to the list of nodes. * * @param \DOMDocument $dom A \DOMDocument instance - * - * @api */ public function addDocument(\DOMDocument $dom) { @@ -269,8 +255,6 @@ class Crawler extends \SplObjectStorage * Adds a \DOMNodeList to the list of nodes. * * @param \DOMNodeList $nodes A \DOMNodeList instance - * - * @api */ public function addNodeList(\DOMNodeList $nodes) { @@ -285,8 +269,6 @@ class Crawler extends \SplObjectStorage * Adds an array of \DOMNode instances to the list of nodes. * * @param \DOMNode[] $nodes An array of \DOMNode instances - * - * @api */ public function addNodes(array $nodes) { @@ -299,8 +281,6 @@ class Crawler extends \SplObjectStorage * Adds a \DOMNode instance to the list of nodes. * * @param \DOMNode $node A \DOMNode instance - * - * @api */ public function addNode(\DOMNode $node) { @@ -328,8 +308,6 @@ class Crawler extends \SplObjectStorage * @param int $position The position * * @return Crawler A new instance of the Crawler with the selected node, or an empty Crawler if it does not exist. - * - * @api */ public function eq($position) { @@ -357,8 +335,6 @@ class Crawler extends \SplObjectStorage * @param \Closure $closure An anonymous function * * @return array An array of values returned by the anonymous function - * - * @api */ public function each(\Closure $closure) { @@ -378,8 +354,6 @@ class Crawler extends \SplObjectStorage * @param \Closure $closure An anonymous function * * @return Crawler A Crawler instance with the selected nodes. - * - * @api */ public function reduce(\Closure $closure) { @@ -397,8 +371,6 @@ class Crawler extends \SplObjectStorage * Returns the first node of the current selection. * * @return Crawler A Crawler instance with the first selected node - * - * @api */ public function first() { @@ -409,8 +381,6 @@ class Crawler extends \SplObjectStorage * Returns the last node of the current selection. * * @return Crawler A Crawler instance with the last selected node - * - * @api */ public function last() { @@ -423,8 +393,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A Crawler instance with the sibling nodes * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function siblings() { @@ -441,8 +409,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A Crawler instance with the next sibling nodes * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function nextAll() { @@ -459,8 +425,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A Crawler instance with the previous sibling nodes * * @throws \InvalidArgumentException - * - * @api */ public function previousAll() { @@ -477,8 +441,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A Crawler instance with the parents nodes of the current selection * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function parents() { @@ -504,8 +466,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A Crawler instance with the children nodes * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function children() { @@ -526,8 +486,6 @@ class Crawler extends \SplObjectStorage * @return string The attribute value * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function attr($attribute) { @@ -544,8 +502,6 @@ class Crawler extends \SplObjectStorage * @return string The node value * * @throws \InvalidArgumentException When current node is empty - * - * @api */ public function text() { @@ -597,8 +553,6 @@ class Crawler extends \SplObjectStorage * @param array $attributes An array of attributes * * @return array An array of extracted values - * - * @api */ public function extract($attributes) { @@ -633,8 +587,6 @@ class Crawler extends \SplObjectStorage * @param string $xpath An XPath expression * * @return Crawler A new instance of Crawler with the filtered list of nodes - * - * @api */ public function filterXPath($xpath) { @@ -658,8 +610,6 @@ class Crawler extends \SplObjectStorage * @return Crawler A new instance of Crawler with the filtered list of nodes * * @throws \RuntimeException if the CssSelector Component is not available - * - * @api */ public function filter($selector) { @@ -679,8 +629,6 @@ class Crawler extends \SplObjectStorage * @param string $value The link text * * @return Crawler A new instance of Crawler with the filtered list of nodes - * - * @api */ public function selectLink($value) { @@ -696,8 +644,6 @@ class Crawler extends \SplObjectStorage * @param string $value The button text * * @return Crawler A new instance of Crawler with the filtered list of nodes - * - * @api */ public function selectButton($value) { @@ -717,8 +663,6 @@ class Crawler extends \SplObjectStorage * @return Link A Link instance * * @throws \InvalidArgumentException If the current node list is empty - * - * @api */ public function link($method = 'get') { @@ -735,8 +679,6 @@ class Crawler extends \SplObjectStorage * Returns an array of Link objects for the nodes in the list. * * @return Link[] An array of Link instances - * - * @api */ public function links() { @@ -757,8 +699,6 @@ class Crawler extends \SplObjectStorage * @return Form A Form instance * * @throws \InvalidArgumentException If the current node list is empty - * - * @api */ public function form(array $values = null, $method = null) { diff --git a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php index d5bbafc68c..b4816eda4e 100644 --- a/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php @@ -17,8 +17,6 @@ namespace Symfony\Component\DomCrawler\Field; * It is constructed from a HTML select tag, or a HTML checkbox, or radio inputs. * * @author Fabien Potencier - * - * @api */ class ChoiceFormField extends FormField { @@ -70,8 +68,6 @@ class ChoiceFormField extends FormField * Sets the value of the field. * * @param string $value The value of the field - * - * @api */ public function select($value) { @@ -82,8 +78,6 @@ class ChoiceFormField extends FormField * Ticks a checkbox. * * @throws \LogicException When the type provided is not correct - * - * @api */ public function tick() { @@ -98,8 +92,6 @@ class ChoiceFormField extends FormField * Ticks a checkbox. * * @throws \LogicException When the type provided is not correct - * - * @api */ public function untick() { diff --git a/src/Symfony/Component/DomCrawler/Field/FileFormField.php b/src/Symfony/Component/DomCrawler/Field/FileFormField.php index c3423b22f6..0e0f94347a 100644 --- a/src/Symfony/Component/DomCrawler/Field/FileFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/FileFormField.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler\Field; * FileFormField represents a file form field (an HTML file input tag). * * @author Fabien Potencier - * - * @api */ class FileFormField extends FormField { @@ -41,8 +39,6 @@ class FileFormField extends FormField * Sets the value of the field. * * @param string $value The value of the field - * - * @api */ public function upload($value) { diff --git a/src/Symfony/Component/DomCrawler/Field/FormField.php b/src/Symfony/Component/DomCrawler/Field/FormField.php index 220682ac91..63e89e0b54 100644 --- a/src/Symfony/Component/DomCrawler/Field/FormField.php +++ b/src/Symfony/Component/DomCrawler/Field/FormField.php @@ -81,8 +81,6 @@ abstract class FormField * Sets the value of the field. * * @param string $value The value of the field - * - * @api */ public function setValue($value) { diff --git a/src/Symfony/Component/DomCrawler/Field/InputFormField.php b/src/Symfony/Component/DomCrawler/Field/InputFormField.php index b9bd0a4829..090913efa3 100644 --- a/src/Symfony/Component/DomCrawler/Field/InputFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/InputFormField.php @@ -18,8 +18,6 @@ namespace Symfony\Component\DomCrawler\Field; * specialized classes (cf. FileFormField and ChoiceFormField). * * @author Fabien Potencier - * - * @api */ class InputFormField extends FormField { diff --git a/src/Symfony/Component/DomCrawler/Field/TextareaFormField.php b/src/Symfony/Component/DomCrawler/Field/TextareaFormField.php index a14e70783b..15526e1c25 100644 --- a/src/Symfony/Component/DomCrawler/Field/TextareaFormField.php +++ b/src/Symfony/Component/DomCrawler/Field/TextareaFormField.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler\Field; * TextareaFormField represents a textarea form field (an HTML textarea tag). * * @author Fabien Potencier - * - * @api */ class TextareaFormField extends FormField { diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php index a447c830d5..4087788540 100644 --- a/src/Symfony/Component/DomCrawler/Form.php +++ b/src/Symfony/Component/DomCrawler/Form.php @@ -18,8 +18,6 @@ use Symfony\Component\DomCrawler\Field\FormField; * Form represents an HTML form. * * @author Fabien Potencier - * - * @api */ class Form extends Link implements \ArrayAccess { @@ -47,8 +45,6 @@ class Form extends Link implements \ArrayAccess * @param string $baseHref The URI of the used for relative links, but not for empty action * * @throws \LogicException if the node is not a button inside a form tag - * - * @api */ public function __construct(\DOMNode $node, $currentUri, $method = null, $baseHref = null) { @@ -74,8 +70,6 @@ class Form extends Link implements \ArrayAccess * @param array $values An array of field values * * @return Form - * - * @api */ public function setValues(array $values) { @@ -92,8 +86,6 @@ class Form extends Link implements \ArrayAccess * The returned array does not include file fields (@see getFiles). * * @return array An array of field values. - * - * @api */ public function getValues() { @@ -115,8 +107,6 @@ class Form extends Link implements \ArrayAccess * Gets the file field values. * * @return array An array of file field values. - * - * @api */ public function getFiles() { @@ -146,8 +136,6 @@ class Form extends Link implements \ArrayAccess * (like foo[bar] to arrays) like PHP does. * * @return array An array of field values. - * - * @api */ public function getPhpValues() { @@ -171,8 +159,6 @@ class Form extends Link implements \ArrayAccess * (like foo[bar] to arrays) like PHP does. * * @return array An array of field values. - * - * @api */ public function getPhpFiles() { @@ -197,8 +183,6 @@ class Form extends Link implements \ArrayAccess * browser behavior. * * @return string The URI - * - * @api */ public function getUri() { @@ -232,8 +216,6 @@ class Form extends Link implements \ArrayAccess * If no method is defined in the form, GET is returned. * * @return string The method - * - * @api */ public function getMethod() { @@ -250,8 +232,6 @@ class Form extends Link implements \ArrayAccess * @param string $name The field name * * @return bool true if the field exists, false otherwise - * - * @api */ public function has($name) { @@ -264,8 +244,6 @@ class Form extends Link implements \ArrayAccess * @param string $name The field name * * @throws \InvalidArgumentException when the name is malformed - * - * @api */ public function remove($name) { @@ -280,8 +258,6 @@ class Form extends Link implements \ArrayAccess * @return FormField The field instance * * @throws \InvalidArgumentException When field is not present in this form - * - * @api */ public function get($name) { @@ -292,8 +268,6 @@ class Form extends Link implements \ArrayAccess * Sets a named field. * * @param FormField $field The field - * - * @api */ public function set(FormField $field) { @@ -304,8 +278,6 @@ class Form extends Link implements \ArrayAccess * Gets all fields. * * @return FormField[] An array of fields - * - * @api */ public function all() { diff --git a/src/Symfony/Component/DomCrawler/Link.php b/src/Symfony/Component/DomCrawler/Link.php index b1ed5e5fd2..9f81cdce7a 100644 --- a/src/Symfony/Component/DomCrawler/Link.php +++ b/src/Symfony/Component/DomCrawler/Link.php @@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler; * Link represents an HTML link (an HTML a or area tag). * * @author Fabien Potencier - * - * @api */ class Link { @@ -43,8 +41,6 @@ class Link * @param string $method The method to use for the link (get by default) * * @throws \InvalidArgumentException if the node is not a link - * - * @api */ public function __construct(\DOMNode $node, $currentUri, $method = 'GET') { @@ -71,8 +67,6 @@ class Link * Gets the method associated with this link. * * @return string The method - * - * @api */ public function getMethod() { @@ -83,8 +77,6 @@ class Link * Gets the URI associated with this link. * * @return string The URI - * - * @api */ public function getUri() { diff --git a/src/Symfony/Component/EventDispatcher/Event.php b/src/Symfony/Component/EventDispatcher/Event.php index ea89f56bcd..85ea12b747 100644 --- a/src/Symfony/Component/EventDispatcher/Event.php +++ b/src/Symfony/Component/EventDispatcher/Event.php @@ -24,8 +24,6 @@ namespace Symfony\Component\EventDispatcher; * @author Jonathan Wage * @author Roman Borschel * @author Bernhard Schussek - * - * @api */ class Event { @@ -50,8 +48,6 @@ class Event * @see Event::stopPropagation() * * @return bool Whether propagation was already stopped for this event. - * - * @api */ public function isPropagationStopped() { @@ -64,8 +60,6 @@ class Event * If multiple event listeners are connected to the same event, no * further event listener will be triggered once any trigger calls * stopPropagation(). - * - * @api */ public function stopPropagation() { @@ -76,8 +70,6 @@ class Event * Stores the EventDispatcher that dispatches this Event. * * @param EventDispatcherInterface $dispatcher - * - * @api */ public function setDispatcher(EventDispatcherInterface $dispatcher) { @@ -88,8 +80,6 @@ class Event * Returns the EventDispatcher that dispatches this Event. * * @return EventDispatcherInterface - * - * @api */ public function getDispatcher() { @@ -100,8 +90,6 @@ class Event * Gets the event's name. * * @return string - * - * @api */ public function getName() { @@ -112,8 +100,6 @@ class Event * Sets the event's name property. * * @param string $name The event name. - * - * @api */ public function setName($name) { diff --git a/src/Symfony/Component/EventDispatcher/EventDispatcher.php b/src/Symfony/Component/EventDispatcher/EventDispatcher.php index 54a279fb40..8ec832e8a9 100644 --- a/src/Symfony/Component/EventDispatcher/EventDispatcher.php +++ b/src/Symfony/Component/EventDispatcher/EventDispatcher.php @@ -24,8 +24,6 @@ namespace Symfony\Component\EventDispatcher; * @author Fabien Potencier * @author Jordi Boggiano * @author Jordan Alliot - * - * @api */ class EventDispatcher implements EventDispatcherInterface { diff --git a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php index 9d9fc4d44c..a9bdd2c886 100644 --- a/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php +++ b/src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php @@ -17,8 +17,6 @@ namespace Symfony\Component\EventDispatcher; * manager. * * @author Bernhard Schussek - * - * @api */ interface EventDispatcherInterface { @@ -32,8 +30,6 @@ interface EventDispatcherInterface * If not supplied, an empty Event instance is created. * * @return Event - * - * @api */ public function dispatch($eventName, Event $event = null); @@ -44,8 +40,6 @@ interface EventDispatcherInterface * @param callable $listener The listener * @param int $priority The higher this value, the earlier an event * listener will be triggered in the chain (defaults to 0) - * - * @api */ public function addListener($eventName, $listener, $priority = 0); @@ -56,8 +50,6 @@ interface EventDispatcherInterface * interested in and added as a listener for these events. * * @param EventSubscriberInterface $subscriber The subscriber. - * - * @api */ public function addSubscriber(EventSubscriberInterface $subscriber); diff --git a/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php b/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php index ff7e305cd5..ec53e54e20 100644 --- a/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php +++ b/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php @@ -21,8 +21,6 @@ namespace Symfony\Component\EventDispatcher; * @author Jonathan Wage * @author Roman Borschel * @author Bernhard Schussek - * - * @api */ interface EventSubscriberInterface { @@ -43,8 +41,6 @@ interface EventSubscriberInterface * * array('eventName' => array(array('methodName1', $priority), array('methodName2')) * * @return array The event names to listen to - * - * @api */ public static function getSubscribedEvents(); } diff --git a/src/Symfony/Component/Filesystem/Exception/ExceptionInterface.php b/src/Symfony/Component/Filesystem/Exception/ExceptionInterface.php index c212e664d4..8f4f10aac7 100644 --- a/src/Symfony/Component/Filesystem/Exception/ExceptionInterface.php +++ b/src/Symfony/Component/Filesystem/Exception/ExceptionInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Filesystem\Exception; * Exception interface for all exceptions thrown by the component. * * @author Romain Neutron - * - * @api */ interface ExceptionInterface { diff --git a/src/Symfony/Component/Filesystem/Exception/IOException.php b/src/Symfony/Component/Filesystem/Exception/IOException.php index d713aaad61..73505965cd 100644 --- a/src/Symfony/Component/Filesystem/Exception/IOException.php +++ b/src/Symfony/Component/Filesystem/Exception/IOException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Filesystem\Exception; * Exception class thrown when a filesystem operation failure happens. * * @author Romain Neutron - * - * @api */ class IOException extends \RuntimeException implements ExceptionInterface { diff --git a/src/Symfony/Component/Finder/Finder.php b/src/Symfony/Component/Finder/Finder.php index 940cb5b999..51b8183023 100644 --- a/src/Symfony/Component/Finder/Finder.php +++ b/src/Symfony/Component/Finder/Finder.php @@ -39,8 +39,6 @@ use Symfony\Component\Finder\Iterator\SortableIterator; * $finder = Finder::create()->files()->name('*.php')->in(__DIR__); * * @author Fabien Potencier - * - * @api */ class Finder implements \IteratorAggregate, \Countable { @@ -88,8 +86,6 @@ class Finder implements \IteratorAggregate, \Countable * Creates a new Finder. * * @return Finder A new Finder instance - * - * @api */ public static function create() { @@ -176,8 +172,6 @@ class Finder implements \IteratorAggregate, \Countable * Restricts the matching to directories only. * * @return Finder The current Finder instance - * - * @api */ public function directories() { @@ -190,8 +184,6 @@ class Finder implements \IteratorAggregate, \Countable * Restricts the matching to files only. * * @return Finder The current Finder instance - * - * @api */ public function files() { @@ -214,8 +206,6 @@ class Finder implements \IteratorAggregate, \Countable * * @see DepthRangeFilterIterator * @see NumberComparator - * - * @api */ public function depth($level) { @@ -241,8 +231,6 @@ class Finder implements \IteratorAggregate, \Countable * @see strtotime * @see DateRangeFilterIterator * @see DateComparator - * - * @api */ public function date($date) { @@ -265,8 +253,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see FilenameFilterIterator - * - * @api */ public function name($pattern) { @@ -283,8 +269,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see FilenameFilterIterator - * - * @api */ public function notName($pattern) { @@ -394,8 +378,6 @@ class Finder implements \IteratorAggregate, \Countable * * @see SizeRangeFilterIterator * @see NumberComparator - * - * @api */ public function size($size) { @@ -412,8 +394,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see ExcludeDirectoryFilterIterator - * - * @api */ public function exclude($dirs) { @@ -430,8 +410,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see ExcludeDirectoryFilterIterator - * - * @api */ public function ignoreDotFiles($ignoreDotFiles) { @@ -452,8 +430,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see ExcludeDirectoryFilterIterator - * - * @api */ public function ignoreVCS($ignoreVCS) { @@ -494,8 +470,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sort(\Closure $closure) { @@ -512,8 +486,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sortByName() { @@ -530,8 +502,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sortByType() { @@ -550,8 +520,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sortByAccessedTime() { @@ -572,8 +540,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sortByChangedTime() { @@ -592,8 +558,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see SortableIterator - * - * @api */ public function sortByModifiedTime() { @@ -613,8 +577,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see CustomFilterIterator - * - * @api */ public function filter(\Closure $closure) { @@ -627,8 +589,6 @@ class Finder implements \IteratorAggregate, \Countable * Forces the following of symlinks. * * @return Finder The current Finder instance - * - * @api */ public function followLinks() { @@ -661,8 +621,6 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @throws \InvalidArgumentException if one of the directories does not exist - * - * @api */ public function in($dirs) { diff --git a/src/Symfony/Component/HttpFoundation/Cookie.php b/src/Symfony/Component/HttpFoundation/Cookie.php index 466d020435..061703d9ca 100644 --- a/src/Symfony/Component/HttpFoundation/Cookie.php +++ b/src/Symfony/Component/HttpFoundation/Cookie.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * Represents a cookie. * * @author Johannes M. Schmitt - * - * @api */ class Cookie { @@ -40,8 +38,6 @@ class Cookie * @param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol * * @throws \InvalidArgumentException - * - * @api */ public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) { @@ -116,8 +112,6 @@ class Cookie * Gets the name of the cookie. * * @return string - * - * @api */ public function getName() { @@ -128,8 +122,6 @@ class Cookie * Gets the value of the cookie. * * @return string - * - * @api */ public function getValue() { @@ -140,8 +132,6 @@ class Cookie * Gets the domain that the cookie is available to. * * @return string - * - * @api */ public function getDomain() { @@ -152,8 +142,6 @@ class Cookie * Gets the time the cookie expires. * * @return int - * - * @api */ public function getExpiresTime() { @@ -164,8 +152,6 @@ class Cookie * Gets the path on the server in which the cookie will be available on. * * @return string - * - * @api */ public function getPath() { @@ -176,8 +162,6 @@ class Cookie * Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client. * * @return bool - * - * @api */ public function isSecure() { @@ -188,8 +172,6 @@ class Cookie * Checks whether the cookie will be made accessible only through the HTTP protocol. * * @return bool - * - * @api */ public function isHttpOnly() { @@ -200,8 +182,6 @@ class Cookie * Whether this cookie is about to be cleared. * * @return bool - * - * @api */ public function isCleared() { diff --git a/src/Symfony/Component/HttpFoundation/File/File.php b/src/Symfony/Component/HttpFoundation/File/File.php index 87c1606d4a..cc1488a977 100644 --- a/src/Symfony/Component/HttpFoundation/File/File.php +++ b/src/Symfony/Component/HttpFoundation/File/File.php @@ -20,8 +20,6 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser; * A file in the file system. * * @author Bernhard Schussek - * - * @api */ class File extends \SplFileInfo { @@ -32,8 +30,6 @@ class File extends \SplFileInfo * @param bool $checkPath Whether to check the path or not * * @throws FileNotFoundException If the given path is not a file - * - * @api */ public function __construct($path, $checkPath = true) { @@ -54,8 +50,6 @@ class File extends \SplFileInfo * * @return string|null The guessed extension or null if it cannot be guessed * - * @api - * * @see ExtensionGuesser * @see getMimeType() */ @@ -77,8 +71,6 @@ class File extends \SplFileInfo * @return string|null The guessed mime type (i.e. "application/pdf") * * @see MimeTypeGuesser - * - * @api */ public function getMimeType() { @@ -93,8 +85,6 @@ class File extends \SplFileInfo * \SplFileInfo::getExtension() is not available before PHP 5.3.6 * * @return string The extension - * - * @api */ public function getExtension() { @@ -110,8 +100,6 @@ class File extends \SplFileInfo * @return File A File object representing the new file * * @throws FileException if the target file could not be created - * - * @api */ public function move($directory, $name = null) { diff --git a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php index 24d03437d4..ad8c796c42 100644 --- a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php +++ b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php @@ -21,8 +21,6 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser; * @author Bernhard Schussek * @author Florian Eckerstorfer * @author Fabien Potencier - * - * @api */ class UploadedFile extends File { @@ -86,8 +84,6 @@ class UploadedFile extends File * * @throws FileException If file_uploads is disabled * @throws FileNotFoundException If the file does not exist - * - * @api */ public function __construct($path, $originalName, $mimeType = null, $size = null, $error = null, $test = false) { @@ -107,8 +103,6 @@ class UploadedFile extends File * Then it should not be considered as a safe value. * * @return string|null The original name - * - * @api */ public function getClientOriginalName() { @@ -140,8 +134,6 @@ class UploadedFile extends File * @return string|null The mime type * * @see getMimeType() - * - * @api */ public function getClientMimeType() { @@ -180,8 +172,6 @@ class UploadedFile extends File * Then it should not be considered as a safe value. * * @return int|null The file size - * - * @api */ public function getClientSize() { @@ -195,8 +185,6 @@ class UploadedFile extends File * Otherwise one of the other UPLOAD_ERR_XXX constants is returned. * * @return int The upload error - * - * @api */ public function getError() { @@ -207,8 +195,6 @@ class UploadedFile extends File * Returns whether the file was uploaded successfully. * * @return bool True if the file has been uploaded with HTTP and no error occurred. - * - * @api */ public function isValid() { @@ -226,8 +212,6 @@ class UploadedFile extends File * @return File A File object representing the new file * * @throws FileException if, for any reason, the file could not have been moved - * - * @api */ public function move($directory, $name = null) { diff --git a/src/Symfony/Component/HttpFoundation/FileBag.php b/src/Symfony/Component/HttpFoundation/FileBag.php index 43b8af3c83..197eab42f6 100644 --- a/src/Symfony/Component/HttpFoundation/FileBag.php +++ b/src/Symfony/Component/HttpFoundation/FileBag.php @@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\File\UploadedFile; * * @author Fabien Potencier * @author Bulat Shakirzyanov - * - * @api */ class FileBag extends ParameterBag { @@ -29,8 +27,6 @@ class FileBag extends ParameterBag * Constructor. * * @param array $parameters An array of HTTP files - * - * @api */ public function __construct(array $parameters = array()) { @@ -39,8 +35,6 @@ class FileBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function replace(array $files = array()) { @@ -50,8 +44,6 @@ class FileBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function set($key, $value) { @@ -64,8 +56,6 @@ class FileBag extends ParameterBag /** * {@inheritdoc} - * - * @api */ public function add(array $files = array()) { diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index ffbd5433c4..bcf143099e 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * HeaderBag is a container for HTTP headers. * * @author Fabien Potencier - * - * @api */ class HeaderBag implements \IteratorAggregate, \Countable { @@ -27,8 +25,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Constructor. * * @param array $headers An array of HTTP headers - * - * @api */ public function __construct(array $headers = array()) { @@ -67,8 +63,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Returns the headers. * * @return array An array of headers - * - * @api */ public function all() { @@ -79,8 +73,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Returns the parameter keys. * * @return array An array of parameter keys - * - * @api */ public function keys() { @@ -91,8 +83,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Replaces the current HTTP headers by a new set. * * @param array $headers An array of HTTP headers - * - * @api */ public function replace(array $headers = array()) { @@ -104,8 +94,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Adds new headers the current HTTP headers set. * * @param array $headers An array of HTTP headers - * - * @api */ public function add(array $headers) { @@ -122,8 +110,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * @param bool $first Whether to return the first value or all header values * * @return string|array The first header value if $first is true, an array of values otherwise - * - * @api */ public function get($key, $default = null, $first = true) { @@ -150,8 +136,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * @param string $key The key * @param string|array $values The value or an array of values * @param bool $replace Whether to replace the actual value or not (true by default) - * - * @api */ public function set($key, $values, $replace = true) { @@ -176,8 +160,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * @param string $key The HTTP header * * @return bool true if the parameter exists, false otherwise - * - * @api */ public function has($key) { @@ -191,8 +173,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * @param string $value The HTTP value * * @return bool true if the value is contained in the header, false otherwise - * - * @api */ public function contains($key, $value) { @@ -203,8 +183,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * Removes a header. * * @param string $key The HTTP header name - * - * @api */ public function remove($key) { @@ -226,8 +204,6 @@ class HeaderBag implements \IteratorAggregate, \Countable * @return null|\DateTime The parsed DateTime or the default value if the header does not exist * * @throws \RuntimeException When the HTTP header is not parseable - * - * @api */ public function getDate($key, \DateTime $default = null) { diff --git a/src/Symfony/Component/HttpFoundation/ParameterBag.php b/src/Symfony/Component/HttpFoundation/ParameterBag.php index 26ca798637..125a4d041c 100644 --- a/src/Symfony/Component/HttpFoundation/ParameterBag.php +++ b/src/Symfony/Component/HttpFoundation/ParameterBag.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * ParameterBag is a container for key/value pairs. * * @author Fabien Potencier - * - * @api */ class ParameterBag implements \IteratorAggregate, \Countable { @@ -31,8 +29,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Constructor. * * @param array $parameters An array of parameters - * - * @api */ public function __construct(array $parameters = array()) { @@ -43,8 +39,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Returns the parameters. * * @return array An array of parameters - * - * @api */ public function all() { @@ -55,8 +49,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Returns the parameter keys. * * @return array An array of parameter keys - * - * @api */ public function keys() { @@ -67,8 +59,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Replaces the current parameters by a new set. * * @param array $parameters An array of parameters - * - * @api */ public function replace(array $parameters = array()) { @@ -79,8 +69,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Adds parameters. * * @param array $parameters An array of parameters - * - * @api */ public function add(array $parameters = array()) { @@ -97,8 +85,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @return mixed * * @throws \InvalidArgumentException - * - * @api */ public function get($path, $default = null, $deep = false) { @@ -154,8 +140,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * * @param string $key The key * @param mixed $value The value - * - * @api */ public function set($key, $value) { @@ -168,8 +152,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param string $key The key * * @return bool true if the parameter exists, false otherwise - * - * @api */ public function has($key) { @@ -180,8 +162,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * Removes a parameter. * * @param string $key The key - * - * @api */ public function remove($key) { @@ -196,8 +176,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param bool $deep If true, a path like foo[bar] will find deeper items * * @return string The filtered value - * - * @api */ public function getAlpha($key, $default = '', $deep = false) { @@ -212,8 +190,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param bool $deep If true, a path like foo[bar] will find deeper items * * @return string The filtered value - * - * @api */ public function getAlnum($key, $default = '', $deep = false) { @@ -228,8 +204,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param bool $deep If true, a path like foo[bar] will find deeper items * * @return string The filtered value - * - * @api */ public function getDigits($key, $default = '', $deep = false) { @@ -245,8 +219,6 @@ class ParameterBag implements \IteratorAggregate, \Countable * @param bool $deep If true, a path like foo[bar] will find deeper items * * @return int The filtered value - * - * @api */ public function getInt($key, $default = 0, $deep = false) { diff --git a/src/Symfony/Component/HttpFoundation/RedirectResponse.php b/src/Symfony/Component/HttpFoundation/RedirectResponse.php index 5dc0b9eddb..a21eb5cc51 100644 --- a/src/Symfony/Component/HttpFoundation/RedirectResponse.php +++ b/src/Symfony/Component/HttpFoundation/RedirectResponse.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * RedirectResponse represents an HTTP response doing a redirect. * * @author Fabien Potencier - * - * @api */ class RedirectResponse extends Response { @@ -32,8 +30,6 @@ class RedirectResponse extends Response * @throws \InvalidArgumentException * * @see http://tools.ietf.org/html/rfc2616#section-10.3 - * - * @api */ public function __construct($url, $status = 302, $headers = array()) { diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 4119c3552f..c79bccc390 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -25,8 +25,6 @@ use Symfony\Component\HttpFoundation\Session\SessionInterface; * * getUriForPath * * @author Fabien Potencier - * - * @api */ class Request { @@ -67,8 +65,6 @@ class Request * Custom parameters. * * @var \Symfony\Component\HttpFoundation\ParameterBag - * - * @api */ public $attributes; @@ -76,8 +72,6 @@ class Request * Request body parameters ($_POST). * * @var \Symfony\Component\HttpFoundation\ParameterBag - * - * @api */ public $request; @@ -85,8 +79,6 @@ class Request * Query string parameters ($_GET). * * @var \Symfony\Component\HttpFoundation\ParameterBag - * - * @api */ public $query; @@ -94,8 +86,6 @@ class Request * Server and execution environment parameters ($_SERVER). * * @var \Symfony\Component\HttpFoundation\ServerBag - * - * @api */ public $server; @@ -103,8 +93,6 @@ class Request * Uploaded files ($_FILES). * * @var \Symfony\Component\HttpFoundation\FileBag - * - * @api */ public $files; @@ -112,8 +100,6 @@ class Request * Cookies ($_COOKIE). * * @var \Symfony\Component\HttpFoundation\ParameterBag - * - * @api */ public $cookies; @@ -121,8 +107,6 @@ class Request * Headers (taken from the $_SERVER). * * @var \Symfony\Component\HttpFoundation\HeaderBag - * - * @api */ public $headers; @@ -206,8 +190,6 @@ class Request * @param array $files The FILES parameters * @param array $server The SERVER parameters * @param string|resource $content The raw body data - * - * @api */ public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) { @@ -226,8 +208,6 @@ class Request * @param array $files The FILES parameters * @param array $server The SERVER parameters * @param string|resource $content The raw body data - * - * @api */ public function initialize(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) { @@ -255,8 +235,6 @@ class Request * Creates a new request with values from PHP's super globals. * * @return Request A new request - * - * @api */ public static function createFromGlobals() { @@ -300,8 +278,6 @@ class Request * @param string $content The raw body data * * @return Request A Request instance - * - * @api */ public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null) { @@ -406,8 +382,6 @@ class Request * @param array $server The SERVER parameters * * @return Request The duplicated request - * - * @api */ public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null) { @@ -493,8 +467,6 @@ class Request * * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE. * $_FILES is never overridden, see rfc1867 - * - * @api */ public function overrideGlobals() { @@ -531,8 +503,6 @@ class Request * You should only list the reverse proxies that you manage directly. * * @param array $proxies A list of trusted proxies - * - * @api */ public static function setTrustedProxies(array $proxies) { @@ -730,8 +700,6 @@ class Request * Gets the Session. * * @return SessionInterface|null The session - * - * @api */ public function getSession() { @@ -743,8 +711,6 @@ class Request * previous requests. * * @return bool - * - * @api */ public function hasPreviousSession() { @@ -760,8 +726,6 @@ class Request * is associated with a Session instance. * * @return bool true when the Request contains a Session object, false otherwise - * - * @api */ public function hasSession() { @@ -772,8 +736,6 @@ class Request * Sets the Session. * * @param SessionInterface $session The Session - * - * @api */ public function setSession(SessionInterface $session) { @@ -843,8 +805,6 @@ class Request * * @see getClientIps() * @see http://en.wikipedia.org/wiki/X-Forwarded-For - * - * @api */ public function getClientIp() { @@ -857,8 +817,6 @@ class Request * Returns current script name. * * @return string - * - * @api */ public function getScriptName() { @@ -878,8 +836,6 @@ class Request * * http://localhost/mysite/about?var=1 returns '/about' * * @return string The raw path (i.e. not urldecoded) - * - * @api */ public function getPathInfo() { @@ -901,8 +857,6 @@ class Request * * http://localhost/we%20b/index.php returns '/we%20b' * * @return string The raw path (i.e. not urldecoded) - * - * @api */ public function getBasePath() { @@ -922,8 +876,6 @@ class Request * script filename (e.g. index.php) if one exists. * * @return string The raw URL (i.e. not urldecoded) - * - * @api */ public function getBaseUrl() { @@ -938,8 +890,6 @@ class Request * Gets the request's scheme. * * @return string - * - * @api */ public function getScheme() { @@ -958,8 +908,6 @@ class Request * configure it via "setTrustedHeaderName()" with the "client-port" key. * * @return string - * - * @api */ public function getPort() { @@ -1033,8 +981,6 @@ class Request * The port name will be appended to the host if it's non-standard. * * @return string - * - * @api */ public function getHttpHost() { @@ -1052,8 +998,6 @@ class Request * Returns the requested URI (path and query string). * * @return string The raw URI (i.e. not URI decoded) - * - * @api */ public function getRequestUri() { @@ -1083,8 +1027,6 @@ class Request * @return string A normalized URI (URL) for the Request * * @see getQueryString() - * - * @api */ public function getUri() { @@ -1101,8 +1043,6 @@ class Request * @param string $path A path to use instead of the current one * * @return string The normalized URI for the path - * - * @api */ public function getUriForPath($path) { @@ -1116,8 +1056,6 @@ class Request * and have consistent escaping. * * @return string|null A normalized query string for the Request - * - * @api */ public function getQueryString() { @@ -1139,8 +1077,6 @@ class Request * the "client-proto" key. * * @return bool - * - * @api */ public function isSecure() { @@ -1167,8 +1103,6 @@ class Request * @return string * * @throws \UnexpectedValueException when the host name is invalid - * - * @api */ public function getHost() { @@ -1218,8 +1152,6 @@ class Request * Sets the request method. * * @param string $method - * - * @api */ public function setMethod($method) { @@ -1240,8 +1172,6 @@ class Request * * @return string The request method * - * @api - * * @see getRealMethod() */ public function getMethod() @@ -1279,8 +1209,6 @@ class Request * @param string $format The format * * @return string The associated mime type (null if not found) - * - * @api */ public function getMimeType($format) { @@ -1297,8 +1225,6 @@ class Request * @param string $mimeType The associated mime type * * @return string|null The format (null if not found) - * - * @api */ public function getFormat($mimeType) { @@ -1322,8 +1248,6 @@ class Request * * @param string $format The format * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type) - * - * @api */ public function setFormat($format, $mimeTypes) { @@ -1346,8 +1270,6 @@ class Request * @param string $default The default format * * @return string The request format - * - * @api */ public function getRequestFormat($default = 'html') { @@ -1362,8 +1284,6 @@ class Request * Sets the request format. * * @param string $format The request format. - * - * @api */ public function setRequestFormat($format) { @@ -1374,8 +1294,6 @@ class Request * Gets the format associated with the request. * * @return string|null The format (null if no content type is present) - * - * @api */ public function getContentType() { @@ -1386,8 +1304,6 @@ class Request * Sets the default locale. * * @param string $locale - * - * @api */ public function setDefaultLocale($locale) { @@ -1412,8 +1328,6 @@ class Request * Sets the locale. * * @param string $locale - * - * @api */ public function setLocale($locale) { @@ -1446,8 +1360,6 @@ class Request * Checks whether the method is safe or not. * * @return bool - * - * @api */ public function isMethodSafe() { @@ -1528,8 +1440,6 @@ class Request * @param array $locales An array of ordered available locales * * @return string|null The preferred locale - * - * @api */ public function getPreferredLanguage(array $locales = null) { @@ -1563,8 +1473,6 @@ class Request * Gets a list of languages acceptable by the client browser. * * @return array Languages ordered in the user browser preferences - * - * @api */ public function getLanguages() { @@ -1605,8 +1513,6 @@ class Request * Gets a list of charsets acceptable by the client browser. * * @return array List of charsets in preferable order - * - * @api */ public function getCharsets() { @@ -1621,8 +1527,6 @@ class Request * Gets a list of content types acceptable by the client browser. * * @return array List of content types in preferable order - * - * @api */ public function getAcceptableContentTypes() { @@ -1642,8 +1546,6 @@ class Request * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript * * @return bool true if the request is an XMLHttpRequest, false otherwise - * - * @api */ public function isXmlHttpRequest() { diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcher.php b/src/Symfony/Component/HttpFoundation/RequestMatcher.php index da95c3acc1..3cfb7737a0 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcher.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcher.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * RequestMatcher compares a pre-defined set of checks against a Request instance. * * @author Fabien Potencier - * - * @api */ class RequestMatcher implements RequestMatcherInterface { @@ -126,8 +124,6 @@ class RequestMatcher implements RequestMatcherInterface /** * {@inheritdoc} - * - * @api */ public function matches(Request $request) { diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php b/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php index b45f80ce8f..066e7e8bf1 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * RequestMatcherInterface is an interface for strategies to match a Request. * * @author Fabien Potencier - * - * @api */ interface RequestMatcherInterface { @@ -26,8 +24,6 @@ interface RequestMatcherInterface * @param Request $request The request to check for a match * * @return bool true if the request matches, false otherwise - * - * @api */ public function matches(Request $request); } diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index df36c5a931..27361dee81 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * Response represents an HTTP response. * * @author Fabien Potencier - * - * @api */ class Response { @@ -132,8 +130,6 @@ class Response * @param array $headers An array of response headers * * @throws \InvalidArgumentException When the HTTP status code is not valid - * - * @api */ public function __construct($content = '', $status = 200, $headers = array()) { @@ -306,8 +302,6 @@ class Response * Sends HTTP headers and content. * * @return Response - * - * @api */ public function send() { @@ -351,8 +345,6 @@ class Response * @return Response * * @throws \UnexpectedValueException - * - * @api */ public function setContent($content) { @@ -369,8 +361,6 @@ class Response * Gets the current response content. * * @return string Content - * - * @api */ public function getContent() { @@ -383,8 +373,6 @@ class Response * @param string $version The HTTP protocol version * * @return Response - * - * @api */ public function setProtocolVersion($version) { @@ -397,8 +385,6 @@ class Response * Gets the HTTP protocol version. * * @return string The HTTP protocol version - * - * @api */ public function getProtocolVersion() { @@ -417,8 +403,6 @@ class Response * @return Response * * @throws \InvalidArgumentException When the HTTP status code is not valid - * - * @api */ public function setStatusCode($code, $text = null) { @@ -448,8 +432,6 @@ class Response * Retrieves the status code for the current web response. * * @return int Status code - * - * @api */ public function getStatusCode() { @@ -462,8 +444,6 @@ class Response * @param string $charset Character set * * @return Response - * - * @api */ public function setCharset($charset) { @@ -476,8 +456,6 @@ class Response * Retrieves the response charset. * * @return string Character set - * - * @api */ public function getCharset() { @@ -494,8 +472,6 @@ class Response * validator (Last-Modified, ETag) are considered uncacheable. * * @return bool true if the response is worth caching, false otherwise - * - * @api */ public function isCacheable() { @@ -518,8 +494,6 @@ class Response * indicator or Expires header and the calculated age is less than the freshness lifetime. * * @return bool true if the response is fresh, false otherwise - * - * @api */ public function isFresh() { @@ -531,8 +505,6 @@ class Response * the response with the origin server using a conditional GET request. * * @return bool true if the response is validateable, false otherwise - * - * @api */ public function isValidateable() { @@ -545,8 +517,6 @@ class Response * It makes the response ineligible for serving other clients. * * @return Response - * - * @api */ public function setPrivate() { @@ -562,8 +532,6 @@ class Response * It makes the response eligible for serving other clients. * * @return Response - * - * @api */ public function setPublic() { @@ -582,8 +550,6 @@ class Response * greater than the value provided by the origin. * * @return bool true if the response must be revalidated by a cache, false otherwise - * - * @api */ public function mustRevalidate() { @@ -596,8 +562,6 @@ class Response * @return \DateTime A \DateTime instance * * @throws \RuntimeException When the header is not parseable - * - * @api */ public function getDate() { @@ -610,8 +574,6 @@ class Response * @param \DateTime $date A \DateTime instance * * @return Response - * - * @api */ public function setDate(\DateTime $date) { @@ -639,8 +601,6 @@ class Response * Marks the response stale by setting the Age header to be equal to the maximum age of the response. * * @return Response - * - * @api */ public function expire() { @@ -655,8 +615,6 @@ class Response * Returns the value of the Expires header as a DateTime instance. * * @return \DateTime|null A DateTime instance or null if the header does not exist - * - * @api */ public function getExpires() { @@ -676,8 +634,6 @@ class Response * @param \DateTime|null $date A \DateTime instance or null to remove the header * * @return Response - * - * @api */ public function setExpires(\DateTime $date = null) { @@ -700,8 +656,6 @@ class Response * back on an expires header. It returns null when no maximum age can be established. * * @return int|null Number of seconds - * - * @api */ public function getMaxAge() { @@ -726,8 +680,6 @@ class Response * @param int $value Number of seconds * * @return Response - * - * @api */ public function setMaxAge($value) { @@ -744,8 +696,6 @@ class Response * @param int $value Number of seconds * * @return Response - * - * @api */ public function setSharedMaxAge($value) { @@ -764,8 +714,6 @@ class Response * revalidating with the origin. * * @return int|null The TTL in seconds - * - * @api */ public function getTtl() { @@ -782,8 +730,6 @@ class Response * @param int $seconds Number of seconds * * @return Response - * - * @api */ public function setTtl($seconds) { @@ -800,8 +746,6 @@ class Response * @param int $seconds Number of seconds * * @return Response - * - * @api */ public function setClientTtl($seconds) { @@ -816,8 +760,6 @@ class Response * @return \DateTime|null A DateTime instance or null if the header does not exist * * @throws \RuntimeException When the HTTP header is not parseable - * - * @api */ public function getLastModified() { @@ -832,8 +774,6 @@ class Response * @param \DateTime|null $date A \DateTime instance or null to remove the header * * @return Response - * - * @api */ public function setLastModified(\DateTime $date = null) { @@ -852,8 +792,6 @@ class Response * Returns the literal value of the ETag HTTP header. * * @return string|null The ETag HTTP header or null if it does not exist - * - * @api */ public function getEtag() { @@ -867,8 +805,6 @@ class Response * @param bool $weak Whether you want a weak ETag or not * * @return Response - * - * @api */ public function setEtag($etag = null, $weak = false) { @@ -895,8 +831,6 @@ class Response * @return Response * * @throws \InvalidArgumentException - * - * @api */ public function setCache(array $options) { @@ -948,8 +882,6 @@ class Response * @return Response * * @see http://tools.ietf.org/html/rfc2616#section-10.3.5 - * - * @api */ public function setNotModified() { @@ -968,8 +900,6 @@ class Response * Returns true if the response includes a Vary header. * * @return bool true if the response includes a Vary header, false otherwise - * - * @api */ public function hasVary() { @@ -980,8 +910,6 @@ class Response * Returns an array of header names given in the Vary header. * * @return array An array of Vary names - * - * @api */ public function getVary() { @@ -1004,8 +932,6 @@ class Response * @param bool $replace Whether to replace the actual value of not (true by default) * * @return Response - * - * @api */ public function setVary($headers, $replace = true) { @@ -1024,8 +950,6 @@ class Response * @param Request $request A Request instance * * @return bool true if the Response validators match the Request, false otherwise - * - * @api */ public function isNotModified(Request $request) { @@ -1057,8 +981,6 @@ class Response * Is response invalid? * * @return bool - * - * @api */ public function isInvalid() { @@ -1069,8 +991,6 @@ class Response * Is response informative? * * @return bool - * - * @api */ public function isInformational() { @@ -1081,8 +1001,6 @@ class Response * Is response successful? * * @return bool - * - * @api */ public function isSuccessful() { @@ -1093,8 +1011,6 @@ class Response * Is the response a redirect? * * @return bool - * - * @api */ public function isRedirection() { @@ -1105,8 +1021,6 @@ class Response * Is there a client error? * * @return bool - * - * @api */ public function isClientError() { @@ -1117,8 +1031,6 @@ class Response * Was there a server side error? * * @return bool - * - * @api */ public function isServerError() { @@ -1129,8 +1041,6 @@ class Response * Is the response OK? * * @return bool - * - * @api */ public function isOk() { @@ -1141,8 +1051,6 @@ class Response * Is the response forbidden? * * @return bool - * - * @api */ public function isForbidden() { @@ -1153,8 +1061,6 @@ class Response * Is the response a not found error? * * @return bool - * - * @api */ public function isNotFound() { @@ -1167,8 +1073,6 @@ class Response * @param string $location * * @return bool - * - * @api */ public function isRedirect($location = null) { @@ -1179,8 +1083,6 @@ class Response * Is the response empty? * * @return bool - * - * @api */ public function isEmpty() { diff --git a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php b/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php index 702859f9ea..a0a3f63080 100644 --- a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation; * ResponseHeaderBag is a container for Response HTTP headers. * * @author Fabien Potencier - * - * @api */ class ResponseHeaderBag extends HeaderBag { @@ -45,8 +43,6 @@ class ResponseHeaderBag extends HeaderBag * Constructor. * * @param array $headers An array of HTTP headers - * - * @api */ public function __construct(array $headers = array()) { @@ -84,8 +80,6 @@ class ResponseHeaderBag extends HeaderBag /** * {@inheritdoc} - * - * @api */ public function replace(array $headers = array()) { @@ -100,8 +94,6 @@ class ResponseHeaderBag extends HeaderBag /** * {@inheritdoc} - * - * @api */ public function set($key, $values, $replace = true) { @@ -121,8 +113,6 @@ class ResponseHeaderBag extends HeaderBag /** * {@inheritdoc} - * - * @api */ public function remove($key) { @@ -156,8 +146,6 @@ class ResponseHeaderBag extends HeaderBag * Sets a cookie. * * @param Cookie $cookie - * - * @api */ public function setCookie(Cookie $cookie) { @@ -170,8 +158,6 @@ class ResponseHeaderBag extends HeaderBag * @param string $name * @param string $path * @param string $domain - * - * @api */ public function removeCookie($name, $path = '/', $domain = null) { @@ -198,8 +184,6 @@ class ResponseHeaderBag extends HeaderBag * @throws \InvalidArgumentException When the $format is invalid * * @return array - * - * @api */ public function getCookies($format = self::COOKIES_FLAT) { @@ -229,8 +213,6 @@ class ResponseHeaderBag extends HeaderBag * @param string $name * @param string $path * @param string $domain - * - * @api */ public function clearCookie($name, $path = '/', $domain = null) { diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index ac626fd589..b743fe1b19 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -23,8 +23,6 @@ use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; * * @author Fabien Potencier * @author Drak - * - * @api */ class Session implements SessionInterface, \IteratorAggregate, \Countable { diff --git a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php index c1482fa08f..602e544820 100644 --- a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php @@ -26,8 +26,6 @@ interface SessionInterface * @return bool True if session started. * * @throws \RuntimeException If session fails to start. - * - * @api */ public function start(); @@ -35,8 +33,6 @@ interface SessionInterface * Returns the session ID. * * @return string The session ID. - * - * @api */ public function getId(); @@ -44,8 +40,6 @@ interface SessionInterface * Sets the session ID. * * @param string $id - * - * @api */ public function setId($id); @@ -53,8 +47,6 @@ interface SessionInterface * Returns the session name. * * @return mixed The session name. - * - * @api */ public function getName(); @@ -62,8 +54,6 @@ interface SessionInterface * Sets the session name. * * @param string $name - * - * @api */ public function setName($name); @@ -79,8 +69,6 @@ interface SessionInterface * not a Unix timestamp. * * @return bool True if session invalidated, false if error. - * - * @api */ public function invalidate($lifetime = null); @@ -95,8 +83,6 @@ interface SessionInterface * not a Unix timestamp. * * @return bool True if session migrated, false if error. - * - * @api */ public function migrate($destroy = false, $lifetime = null); @@ -115,8 +101,6 @@ interface SessionInterface * @param string $name The attribute name * * @return bool true if the attribute is defined, false otherwise - * - * @api */ public function has($name); @@ -127,8 +111,6 @@ interface SessionInterface * @param mixed $default The default value if not found. * * @return mixed - * - * @api */ public function get($name, $default = null); @@ -137,8 +119,6 @@ interface SessionInterface * * @param string $name * @param mixed $value - * - * @api */ public function set($name, $value); @@ -146,8 +126,6 @@ interface SessionInterface * Returns attributes. * * @return array Attributes - * - * @api */ public function all(); @@ -164,15 +142,11 @@ interface SessionInterface * @param string $name * * @return mixed The removed value - * - * @api */ public function remove($name); /** * Clears all attributes. - * - * @api */ public function clear(); diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php index d88ce895b7..1516d4314a 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NullSessionHandler.php @@ -17,8 +17,6 @@ namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; * Can be used in unit testing or in a situations where persisted sessions are not desired. * * @author Drak - * - * @api */ class NullSessionHandler implements \SessionHandlerInterface { diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php index 5dd309cad1..9f81847a10 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php @@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Session\SessionBagInterface; * * @author Fabien Potencier * @author Drak - * - * @api */ interface SessionStorageInterface { @@ -29,8 +27,6 @@ interface SessionStorageInterface * @throws \RuntimeException If something goes wrong starting the session. * * @return bool True if started. - * - * @api */ public function start(); @@ -45,8 +41,6 @@ interface SessionStorageInterface * Returns the session ID. * * @return string The session ID or empty. - * - * @api */ public function getId(); @@ -54,8 +48,6 @@ interface SessionStorageInterface * Sets the session ID. * * @param string $id - * - * @api */ public function setId($id); @@ -63,8 +55,6 @@ interface SessionStorageInterface * Returns the session name. * * @return mixed The session name. - * - * @api */ public function getName(); @@ -72,8 +62,6 @@ interface SessionStorageInterface * Sets the session name. * * @param string $name - * - * @api */ public function setName($name); @@ -105,8 +93,6 @@ interface SessionStorageInterface * @return bool True if session regenerated, false if error * * @throws \RuntimeException If an error occurs while regenerating this storage - * - * @api */ public function regenerate($destroy = false, $lifetime = null); diff --git a/src/Symfony/Component/HttpFoundation/StreamedResponse.php b/src/Symfony/Component/HttpFoundation/StreamedResponse.php index 683568318e..02c1914ad9 100644 --- a/src/Symfony/Component/HttpFoundation/StreamedResponse.php +++ b/src/Symfony/Component/HttpFoundation/StreamedResponse.php @@ -23,8 +23,6 @@ namespace Symfony\Component\HttpFoundation; * @see flush() * * @author Fabien Potencier - * - * @api */ class StreamedResponse extends Response { @@ -37,8 +35,6 @@ class StreamedResponse extends Response * @param mixed $callback A valid PHP callback * @param int $status The response status code * @param array $headers An array of response headers - * - * @api */ public function __construct($callback = null, $status = 200, $headers = array()) { diff --git a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php index 1eae1053e3..c037170d3c 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php +++ b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php @@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; * for DependencyInjection extensions and Console commands. * * @author Fabien Potencier - * - * @api */ abstract class Bundle extends ContainerAware implements BundleInterface { @@ -66,8 +64,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface * @return ExtensionInterface|null The container extension * * @throws \LogicException - * - * @api */ public function getContainerExtension() { @@ -108,8 +104,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface * Gets the Bundle namespace. * * @return string The Bundle namespace - * - * @api */ public function getNamespace() { @@ -124,8 +118,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface * Gets the Bundle directory path. * * @return string The Bundle absolute path - * - * @api */ public function getPath() { @@ -140,8 +132,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface * Returns the bundle parent name. * * @return string The Bundle parent name it overrides or null if no parent - * - * @api */ public function getParent() { @@ -151,8 +141,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface * Returns the bundle name (the class short name). * * @return string The Bundle name - * - * @api */ final public function getName() { diff --git a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php b/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php index 3203d84a2d..25eea1d76d 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php +++ b/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php @@ -19,22 +19,16 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; * BundleInterface. * * @author Fabien Potencier - * - * @api */ interface BundleInterface extends ContainerAwareInterface { /** * Boots the Bundle. - * - * @api */ public function boot(); /** * Shutdowns the Bundle. - * - * @api */ public function shutdown(); @@ -44,8 +38,6 @@ interface BundleInterface extends ContainerAwareInterface * It is only ever called once when the cache is empty. * * @param ContainerBuilder $container A ContainerBuilder instance - * - * @api */ public function build(ContainerBuilder $container); @@ -53,8 +45,6 @@ interface BundleInterface extends ContainerAwareInterface * Returns the container extension that should be implicitly loaded. * * @return ExtensionInterface|null The default extension or null if there is none - * - * @api */ public function getContainerExtension(); @@ -66,8 +56,6 @@ interface BundleInterface extends ContainerAwareInterface * bundle. * * @return string The Bundle name it overrides or null if no parent - * - * @api */ public function getParent(); @@ -75,8 +63,6 @@ interface BundleInterface extends ContainerAwareInterface * Returns the bundle name (the class short name). * * @return string The Bundle name - * - * @api */ public function getName(); @@ -84,8 +70,6 @@ interface BundleInterface extends ContainerAwareInterface * Gets the Bundle namespace. * * @return string The Bundle namespace - * - * @api */ public function getNamespace(); @@ -95,8 +79,6 @@ interface BundleInterface extends ContainerAwareInterface * The path should always be returned as a Unix path (with /). * * @return string The Bundle absolute path - * - * @api */ public function getPath(); } diff --git a/src/Symfony/Component/HttpKernel/Client.php b/src/Symfony/Component/HttpKernel/Client.php index 2c61c55dbf..a65b8318a9 100644 --- a/src/Symfony/Component/HttpKernel/Client.php +++ b/src/Symfony/Component/HttpKernel/Client.php @@ -25,8 +25,6 @@ use Symfony\Component\HttpFoundation\Response; * Client simulates a browser and makes requests to a Kernel object. * * @author Fabien Potencier - * - * @api */ class Client extends BaseClient { diff --git a/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php b/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php index 3ab8b1ce11..d3bc6ad2e8 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php +++ b/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php @@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request; * the controller method arguments. * * @author Fabien Potencier - * - * @api */ class ControllerResolver implements ControllerResolverInterface { @@ -51,8 +49,6 @@ class ControllerResolver implements ControllerResolverInterface * or false if this resolver is not able to determine the controller * * @throws \InvalidArgumentException|\LogicException If the controller can't be found - * - * @api */ public function getController(Request $request) { @@ -102,8 +98,6 @@ class ControllerResolver implements ControllerResolverInterface * @return array * * @throws \RuntimeException When value for argument given is not provided - * - * @api */ public function getArguments(Request $request, $controller) { diff --git a/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php b/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php index f24872dc14..2f91fd682c 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php +++ b/src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php @@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request; * A Controller can be any valid PHP callable. * * @author Fabien Potencier - * - * @api */ interface ControllerResolverInterface { @@ -42,8 +40,6 @@ interface ControllerResolverInterface * or false if this resolver is not able to determine the controller * * @throws \InvalidArgumentException|\LogicException If the controller can't be found - * - * @api */ public function getController(Request $request); @@ -56,8 +52,6 @@ interface ControllerResolverInterface * @return array An array of arguments to pass to the controller * * @throws \RuntimeException When value for argument given is not provided - * - * @api */ public function getArguments(Request $request, $controller); } diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php index cf4cdfd771..2820ad5b28 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php @@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Response; * DataCollectorInterface. * * @author Fabien Potencier - * - * @api */ interface DataCollectorInterface { @@ -29,8 +27,6 @@ interface DataCollectorInterface * @param Request $request A Request instance * @param Response $response A Response instance * @param \Exception $exception An Exception instance - * - * @api */ public function collect(Request $request, Response $response, \Exception $exception = null); @@ -38,8 +34,6 @@ interface DataCollectorInterface * Returns the name of the collector. * * @return string The collector name - * - * @api */ public function getName(); } diff --git a/src/Symfony/Component/HttpKernel/Event/FilterControllerEvent.php b/src/Symfony/Component/HttpKernel/Event/FilterControllerEvent.php index e33a011752..b61999cd6d 100644 --- a/src/Symfony/Component/HttpKernel/Event/FilterControllerEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/FilterControllerEvent.php @@ -24,8 +24,6 @@ use Symfony\Component\HttpFoundation\Request; * Controllers should be callables. * * @author Bernhard Schussek - * - * @api */ class FilterControllerEvent extends KernelEvent { @@ -47,8 +45,6 @@ class FilterControllerEvent extends KernelEvent * Returns the current controller. * * @return callable - * - * @api */ public function getController() { @@ -61,8 +57,6 @@ class FilterControllerEvent extends KernelEvent * @param callable $controller * * @throws \LogicException - * - * @api */ public function setController($controller) { diff --git a/src/Symfony/Component/HttpKernel/Event/FilterResponseEvent.php b/src/Symfony/Component/HttpKernel/Event/FilterResponseEvent.php index fd88f87733..ed816a9d32 100644 --- a/src/Symfony/Component/HttpKernel/Event/FilterResponseEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/FilterResponseEvent.php @@ -23,8 +23,6 @@ use Symfony\Component\HttpFoundation\Response; * browser. * * @author Bernhard Schussek - * - * @api */ class FilterResponseEvent extends KernelEvent { @@ -46,8 +44,6 @@ class FilterResponseEvent extends KernelEvent * Returns the current response object. * * @return Response - * - * @api */ public function getResponse() { @@ -58,8 +54,6 @@ class FilterResponseEvent extends KernelEvent * Sets a new response object. * * @param Response $response - * - * @api */ public function setResponse(Response $response) { diff --git a/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php b/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php index b9310faeff..4c96a4b7d9 100644 --- a/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/GetResponseEvent.php @@ -21,8 +21,6 @@ use Symfony\Component\HttpFoundation\Response; * response is set. * * @author Bernhard Schussek - * - * @api */ class GetResponseEvent extends KernelEvent { @@ -37,8 +35,6 @@ class GetResponseEvent extends KernelEvent * Returns the response object. * * @return Response - * - * @api */ public function getResponse() { @@ -49,8 +45,6 @@ class GetResponseEvent extends KernelEvent * Sets a response and stops event propagation. * * @param Response $response - * - * @api */ public function setResponse(Response $response) { @@ -63,8 +57,6 @@ class GetResponseEvent extends KernelEvent * Returns whether a response was set. * * @return bool Whether a response was set - * - * @api */ public function hasResponse() { diff --git a/src/Symfony/Component/HttpKernel/Event/GetResponseForControllerResultEvent.php b/src/Symfony/Component/HttpKernel/Event/GetResponseForControllerResultEvent.php index afb1c45059..f70ce09e0a 100644 --- a/src/Symfony/Component/HttpKernel/Event/GetResponseForControllerResultEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/GetResponseForControllerResultEvent.php @@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request; * response is set. * * @author Bernhard Schussek - * - * @api */ class GetResponseForControllerResultEvent extends GetResponseEvent { @@ -45,8 +43,6 @@ class GetResponseForControllerResultEvent extends GetResponseEvent * Returns the return value of the controller. * * @return mixed The controller return value - * - * @api */ public function getControllerResult() { @@ -57,8 +53,6 @@ class GetResponseForControllerResultEvent extends GetResponseEvent * Assigns the return value of the controller. * * @param mixed $controllerResult The controller return value - * - * @api */ public function setControllerResult($controllerResult) { diff --git a/src/Symfony/Component/HttpKernel/Event/GetResponseForExceptionEvent.php b/src/Symfony/Component/HttpKernel/Event/GetResponseForExceptionEvent.php index 3b5957efd8..003953feac 100644 --- a/src/Symfony/Component/HttpKernel/Event/GetResponseForExceptionEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/GetResponseForExceptionEvent.php @@ -26,8 +26,6 @@ use Symfony\Component\HttpFoundation\Request; * event. * * @author Bernhard Schussek - * - * @api */ class GetResponseForExceptionEvent extends GetResponseEvent { @@ -49,8 +47,6 @@ class GetResponseForExceptionEvent extends GetResponseEvent * Returns the thrown exception. * * @return \Exception The thrown exception - * - * @api */ public function getException() { @@ -63,8 +59,6 @@ class GetResponseForExceptionEvent extends GetResponseEvent * This exception will be thrown if no response is set in the event. * * @param \Exception $exception The thrown exception - * - * @api */ public function setException(\Exception $exception) { diff --git a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php index 7173094b59..33b62ebc63 100644 --- a/src/Symfony/Component/HttpKernel/Event/KernelEvent.php +++ b/src/Symfony/Component/HttpKernel/Event/KernelEvent.php @@ -19,8 +19,6 @@ use Symfony\Component\EventDispatcher\Event; * Base class for events thrown in the HttpKernel component. * * @author Bernhard Schussek - * - * @api */ class KernelEvent extends Event { @@ -57,8 +55,6 @@ class KernelEvent extends Event * Returns the kernel in which this event was thrown. * * @return HttpKernelInterface - * - * @api */ public function getKernel() { @@ -69,8 +65,6 @@ class KernelEvent extends Event * Returns the request the kernel is currently processing. * * @return Request - * - * @api */ public function getRequest() { @@ -82,8 +76,6 @@ class KernelEvent extends Event * * @return int One of HttpKernelInterface::MASTER_REQUEST and * HttpKernelInterface::SUB_REQUEST - * - * @api */ public function getRequestType() { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index 5ddd4a6ef1..694b63fe4d 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -24,8 +24,6 @@ use Symfony\Component\HttpFoundation\Response; * Cache provides HTTP caching. * * @author Fabien Potencier - * - * @api */ class HttpCache implements HttpKernelInterface, TerminableInterface { @@ -164,8 +162,6 @@ class HttpCache implements HttpKernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { @@ -217,8 +213,6 @@ class HttpCache implements HttpKernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function terminate(Request $request, Response $response) { diff --git a/src/Symfony/Component/HttpKernel/HttpKernel.php b/src/Symfony/Component/HttpKernel/HttpKernel.php index 00fbdbdedb..954366dcbf 100644 --- a/src/Symfony/Component/HttpKernel/HttpKernel.php +++ b/src/Symfony/Component/HttpKernel/HttpKernel.php @@ -28,8 +28,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; * HttpKernel notifies events to convert a Request object to a Response one. * * @author Fabien Potencier - * - * @api */ class HttpKernel implements HttpKernelInterface, TerminableInterface { @@ -41,8 +39,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface * * @param EventDispatcherInterface $dispatcher An EventDispatcherInterface instance * @param ControllerResolverInterface $resolver A ControllerResolverInterface instance - * - * @api */ public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver) { @@ -52,8 +48,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { @@ -70,8 +64,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function terminate(Request $request, Response $response) { diff --git a/src/Symfony/Component/HttpKernel/HttpKernelInterface.php b/src/Symfony/Component/HttpKernel/HttpKernelInterface.php index d09da6beef..5050bfcfba 100644 --- a/src/Symfony/Component/HttpKernel/HttpKernelInterface.php +++ b/src/Symfony/Component/HttpKernel/HttpKernelInterface.php @@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Response; * HttpKernelInterface handles a Request to convert it to a Response. * * @author Fabien Potencier - * - * @api */ interface HttpKernelInterface { @@ -40,8 +38,6 @@ interface HttpKernelInterface * @return Response A Response instance * * @throws \Exception When an Exception occurs during processing - * - * @api */ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true); } diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index 312dbb60a6..422af718a6 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -40,8 +40,6 @@ use Symfony\Component\ClassLoader\ClassCollectionLoader; * It manages an environment made of bundles. * * @author Fabien Potencier - * - * @api */ abstract class Kernel implements KernelInterface, TerminableInterface { @@ -72,8 +70,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface * * @param string $environment The environment * @param bool $debug Whether to enable debugging or not - * - * @api */ public function __construct($environment, $debug) { @@ -110,8 +106,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * Boots the current kernel. - * - * @api */ public function boot() { @@ -139,8 +133,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function terminate(Request $request, Response $response) { @@ -155,8 +147,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function shutdown() { @@ -176,8 +166,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { @@ -200,8 +188,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getBundles() { @@ -210,8 +196,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function isClassInActiveBundle($class) { @@ -226,8 +210,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getBundle($name, $first = true) { @@ -303,8 +285,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getName() { @@ -317,8 +297,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getEnvironment() { @@ -327,8 +305,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function isDebug() { @@ -337,8 +313,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getRootDir() { @@ -352,8 +326,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getContainer() { @@ -387,8 +359,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getStartTime() { @@ -397,8 +367,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getCacheDir() { @@ -407,8 +375,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getLogDir() { @@ -417,8 +383,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * {@inheritdoc} - * - * @api */ public function getCharset() { diff --git a/src/Symfony/Component/HttpKernel/KernelEvents.php b/src/Symfony/Component/HttpKernel/KernelEvents.php index 576880a7be..170ecccbca 100644 --- a/src/Symfony/Component/HttpKernel/KernelEvents.php +++ b/src/Symfony/Component/HttpKernel/KernelEvents.php @@ -15,8 +15,6 @@ namespace Symfony\Component\HttpKernel; * Contains all events thrown in the HttpKernel component. * * @author Bernhard Schussek - * - * @api */ final class KernelEvents { @@ -32,8 +30,6 @@ final class KernelEvents * @Event * * @var string - * - * @api */ const REQUEST = 'kernel.request'; @@ -48,8 +44,6 @@ final class KernelEvents * @Event * * @var string - * - * @api */ const EXCEPTION = 'kernel.exception'; @@ -65,8 +59,6 @@ final class KernelEvents * @Event * * @var string - * - * @api */ const VIEW = 'kernel.view'; @@ -81,8 +73,6 @@ final class KernelEvents * @Event * * @var string - * - * @api */ const CONTROLLER = 'kernel.controller'; @@ -97,8 +87,6 @@ final class KernelEvents * @Event * * @var string - * - * @api */ const RESPONSE = 'kernel.response'; diff --git a/src/Symfony/Component/HttpKernel/KernelInterface.php b/src/Symfony/Component/HttpKernel/KernelInterface.php index 44c6f5be47..712135ecaa 100644 --- a/src/Symfony/Component/HttpKernel/KernelInterface.php +++ b/src/Symfony/Component/HttpKernel/KernelInterface.php @@ -21,8 +21,6 @@ use Symfony\Component\Config\Loader\LoaderInterface; * It manages an environment made of bundles. * * @author Fabien Potencier - * - * @api */ interface KernelInterface extends HttpKernelInterface, \Serializable { @@ -30,8 +28,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Returns an array of bundles to register. * * @return BundleInterface[] An array of bundle instances. - * - * @api */ public function registerBundles(); @@ -39,15 +35,11 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Loads the container configuration. * * @param LoaderInterface $loader A LoaderInterface instance - * - * @api */ public function registerContainerConfiguration(LoaderInterface $loader); /** * Boots the current kernel. - * - * @api */ public function boot(); @@ -55,8 +47,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Shutdowns the kernel. * * This method is mainly useful when doing functional testing. - * - * @api */ public function shutdown(); @@ -64,8 +54,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the registered bundle instances. * * @return BundleInterface[] An array of registered bundle instances - * - * @api */ public function getBundles(); @@ -75,8 +63,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * @param string $class A class name * * @return bool true if the class belongs to an active bundle, false otherwise - * - * @api */ public function isClassInActiveBundle($class); @@ -89,8 +75,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * @return BundleInterface|BundleInterface[] A BundleInterface instance or an array of BundleInterface instances if $first is false * * @throws \InvalidArgumentException when the bundle is not enabled - * - * @api */ public function getBundle($name, $first = true); @@ -121,8 +105,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * * @throws \InvalidArgumentException if the file cannot be found or the name is not valid * @throws \RuntimeException if the name contains invalid/unsafe characters - * - * @api */ public function locateResource($name, $dir = null, $first = true); @@ -130,8 +112,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the name of the kernel. * * @return string The kernel name - * - * @api */ public function getName(); @@ -139,8 +119,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the environment. * * @return string The current environment - * - * @api */ public function getEnvironment(); @@ -148,8 +126,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Checks if debug mode is enabled. * * @return bool true if debug mode is enabled, false otherwise - * - * @api */ public function isDebug(); @@ -157,8 +133,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the application root dir. * * @return string The application root dir - * - * @api */ public function getRootDir(); @@ -166,8 +140,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the current container. * * @return ContainerInterface A ContainerInterface instance - * - * @api */ public function getContainer(); @@ -175,8 +147,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the request start time (not available if debug is disabled). * * @return int The request start timestamp - * - * @api */ public function getStartTime(); @@ -184,8 +154,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the cache directory. * * @return string The cache directory - * - * @api */ public function getCacheDir(); @@ -193,8 +161,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the log directory. * * @return string The log directory - * - * @api */ public function getLogDir(); @@ -202,8 +168,6 @@ interface KernelInterface extends HttpKernelInterface, \Serializable * Gets the charset of the application. * * @return string The charset - * - * @api */ public function getCharset(); } diff --git a/src/Symfony/Component/HttpKernel/Log/LoggerInterface.php b/src/Symfony/Component/HttpKernel/Log/LoggerInterface.php index 856c26a18b..3a1cc75ac8 100644 --- a/src/Symfony/Component/HttpKernel/Log/LoggerInterface.php +++ b/src/Symfony/Component/HttpKernel/Log/LoggerInterface.php @@ -19,35 +19,25 @@ use Psr\Log\LoggerInterface as PsrLogger; * @author Fabien Potencier * * @deprecated since 2.2, to be removed in 3.0. Type-hint \Psr\Log\LoggerInterface instead. - * - * @api */ interface LoggerInterface extends PsrLogger { /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible. */ public function emerg($message, array $context = array()); /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible. */ public function crit($message, array $context = array()); /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible. */ public function err($message, array $context = array()); /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible. */ public function warn($message, array $context = array()); diff --git a/src/Symfony/Component/HttpKernel/Log/NullLogger.php b/src/Symfony/Component/HttpKernel/Log/NullLogger.php index 0948e0d88b..b552726023 100644 --- a/src/Symfony/Component/HttpKernel/Log/NullLogger.php +++ b/src/Symfony/Component/HttpKernel/Log/NullLogger.php @@ -17,14 +17,10 @@ use Psr\Log\NullLogger as PsrNullLogger; * NullLogger. * * @author Fabien Potencier - * - * @api */ class NullLogger extends PsrNullLogger implements LoggerInterface { /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible. */ public function emerg($message, array $context = array()) @@ -32,8 +28,6 @@ class NullLogger extends PsrNullLogger implements LoggerInterface } /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible. */ public function crit($message, array $context = array()) @@ -41,8 +35,6 @@ class NullLogger extends PsrNullLogger implements LoggerInterface } /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible. */ public function err($message, array $context = array()) @@ -50,8 +42,6 @@ class NullLogger extends PsrNullLogger implements LoggerInterface } /** - * @api - * * @deprecated since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible. */ public function warn($message, array $context = array()) diff --git a/src/Symfony/Component/HttpKernel/TerminableInterface.php b/src/Symfony/Component/HttpKernel/TerminableInterface.php index fc0e580dfb..d55a15b87e 100644 --- a/src/Symfony/Component/HttpKernel/TerminableInterface.php +++ b/src/Symfony/Component/HttpKernel/TerminableInterface.php @@ -20,8 +20,6 @@ use Symfony\Component\HttpFoundation\Response; * * @author Jordi Boggiano * @author Pierre Minnieur - * - * @api */ interface TerminableInterface { @@ -32,8 +30,6 @@ interface TerminableInterface * * @param Request $request A Request instance * @param Response $response A Response instance - * - * @api */ public function terminate(Request $request, Response $response); } diff --git a/src/Symfony/Component/Process/PhpProcess.php b/src/Symfony/Component/Process/PhpProcess.php index 6a5858748a..e5777ea22a 100644 --- a/src/Symfony/Component/Process/PhpProcess.php +++ b/src/Symfony/Component/Process/PhpProcess.php @@ -21,8 +21,6 @@ use Symfony\Component\Process\Exception\RuntimeException; * print $p->getOutput()."\n"; * * @author Fabien Potencier - * - * @api */ class PhpProcess extends Process { @@ -34,8 +32,6 @@ class PhpProcess extends Process * @param array $env The environment variables * @param int $timeout The timeout in seconds * @param array $options An array of options for proc_open - * - * @api */ public function __construct($script, $cwd = null, array $env = array(), $timeout = 60, array $options = array()) { @@ -49,8 +45,6 @@ class PhpProcess extends Process /** * Sets the path to the PHP binary to use. - * - * @api */ public function setPhpBinary($php) { diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 61f37ba599..ec5d211e40 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -20,8 +20,6 @@ use Symfony\Component\Process\Exception\RuntimeException; * start independent PHP processes. * * @author Fabien Potencier - * - * @api */ class Process { @@ -129,8 +127,6 @@ class Process * @param array $options An array of options for proc_open * * @throws RuntimeException When proc_open is not installed - * - * @api */ public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array()) { @@ -187,8 +183,6 @@ class Process * * @throws RuntimeException When process can't be launched * @throws RuntimeException When process stopped after receiving signal - * - * @api */ public function run($callback = null) { @@ -372,8 +366,6 @@ class Process * @return string The process output * * @throws LogicException In case the process is not started - * - * @api */ public function getOutput() { @@ -417,8 +409,6 @@ class Process * @return string The process error output * * @throws LogicException In case the process is not started - * - * @api */ public function getErrorOutput() { @@ -463,8 +453,6 @@ class Process * @return null|int The exit status code, null if the Process is not terminated * * @throws RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled - * - * @api */ public function getExitCode() { @@ -503,8 +491,6 @@ class Process * Checks if the process ended successfully. * * @return bool true if the process ended successfully, false otherwise - * - * @api */ public function isSuccessful() { @@ -520,8 +506,6 @@ class Process * * @throws RuntimeException In case --enable-sigchild is activated * @throws LogicException In case the process is not terminated - * - * @api */ public function hasBeenSignaled() { @@ -545,8 +529,6 @@ class Process * * @throws RuntimeException In case --enable-sigchild is activated * @throws LogicException In case the process is not terminated - * - * @api */ public function getTermSignal() { @@ -569,8 +551,6 @@ class Process * @return bool * * @throws LogicException In case the process is not terminated - * - * @api */ public function hasBeenStopped() { @@ -589,8 +569,6 @@ class Process * @return int * * @throws LogicException In case the process is not terminated - * - * @api */ public function getStopSignal() { diff --git a/src/Symfony/Component/Routing/Exception/ExceptionInterface.php b/src/Symfony/Component/Routing/Exception/ExceptionInterface.php index 9fcd2249b7..db7636211f 100644 --- a/src/Symfony/Component/Routing/Exception/ExceptionInterface.php +++ b/src/Symfony/Component/Routing/Exception/ExceptionInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Routing\Exception; * ExceptionInterface. * * @author Alexandre Salomé - * - * @api */ interface ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Exception/InvalidParameterException.php b/src/Symfony/Component/Routing/Exception/InvalidParameterException.php index ae37c343b2..94d841f4ce 100644 --- a/src/Symfony/Component/Routing/Exception/InvalidParameterException.php +++ b/src/Symfony/Component/Routing/Exception/InvalidParameterException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Routing\Exception; * Exception thrown when a parameter is not valid. * * @author Alexandre Salomé - * - * @api */ class InvalidParameterException extends \InvalidArgumentException implements ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Exception/MethodNotAllowedException.php b/src/Symfony/Component/Routing/Exception/MethodNotAllowedException.php index 32f109137f..f684c74916 100644 --- a/src/Symfony/Component/Routing/Exception/MethodNotAllowedException.php +++ b/src/Symfony/Component/Routing/Exception/MethodNotAllowedException.php @@ -17,8 +17,6 @@ namespace Symfony\Component\Routing\Exception; * This exception should trigger an HTTP 405 response in your application code. * * @author Kris Wallsmith - * - * @api */ class MethodNotAllowedException extends \RuntimeException implements ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php b/src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php index 5a523fa559..57f3a40dfa 100644 --- a/src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php +++ b/src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Routing\Exception; * mandatory parameters. * * @author Alexandre Salomé - * - * @api */ class MissingMandatoryParametersException extends \InvalidArgumentException implements ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php b/src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php index 362a0d61f3..ccbca15270 100644 --- a/src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php +++ b/src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php @@ -17,8 +17,6 @@ namespace Symfony\Component\Routing\Exception; * This exception should trigger an HTTP 404 response in your application code. * * @author Kris Wallsmith - * - * @api */ class ResourceNotFoundException extends \RuntimeException implements ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Exception/RouteNotFoundException.php b/src/Symfony/Component/Routing/Exception/RouteNotFoundException.php index 8059e4579d..24ab0b44a9 100644 --- a/src/Symfony/Component/Routing/Exception/RouteNotFoundException.php +++ b/src/Symfony/Component/Routing/Exception/RouteNotFoundException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Routing\Exception; * Exception thrown when a route does not exist. * * @author Alexandre Salomé - * - * @api */ class RouteNotFoundException extends \InvalidArgumentException implements ExceptionInterface { diff --git a/src/Symfony/Component/Routing/Generator/Dumper/GeneratorDumperInterface.php b/src/Symfony/Component/Routing/Generator/Dumper/GeneratorDumperInterface.php index deb0c0a2dd..fed3472392 100644 --- a/src/Symfony/Component/Routing/Generator/Dumper/GeneratorDumperInterface.php +++ b/src/Symfony/Component/Routing/Generator/Dumper/GeneratorDumperInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\Routing\RouteCollection; * GeneratorDumperInterface is the interface that all generator dumper classes must implement. * * @author Fabien Potencier - * - * @api */ interface GeneratorDumperInterface { diff --git a/src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php b/src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php index 1a9035668d..9f26cad837 100644 --- a/src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php +++ b/src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Routing\Generator\Dumper; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class PhpGeneratorDumper extends GeneratorDumper { @@ -32,8 +30,6 @@ class PhpGeneratorDumper extends GeneratorDumper * @param array $options An array of options * * @return string A PHP class representing the generator class - * - * @api */ public function dump(array $options = array()) { diff --git a/src/Symfony/Component/Routing/Generator/UrlGenerator.php b/src/Symfony/Component/Routing/Generator/UrlGenerator.php index d17941989b..dc46c60fb9 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGenerator.php +++ b/src/Symfony/Component/Routing/Generator/UrlGenerator.php @@ -24,8 +24,6 @@ use Psr\Log\LoggerInterface; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInterface { @@ -83,8 +81,6 @@ class UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInt * @param RouteCollection $routes A RouteCollection instance * @param RequestContext $context The context * @param LoggerInterface|null $logger A logger instance - * - * @api */ public function __construct(RouteCollection $routes, RequestContext $context, LoggerInterface $logger = null) { diff --git a/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php b/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php index a70c90a620..fc294b7e5e 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php +++ b/src/Symfony/Component/Routing/Generator/UrlGeneratorInterface.php @@ -28,8 +28,6 @@ use Symfony\Component\Routing\RequestContextAwareInterface; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ interface UrlGeneratorInterface extends RequestContextAwareInterface { @@ -81,8 +79,6 @@ interface UrlGeneratorInterface extends RequestContextAwareInterface * @throws MissingMandatoryParametersException When some parameters are missing that are mandatory for the route * @throws InvalidParameterException When a parameter value for a placeholder is not correct because * it does not match the requirement - * - * @api */ public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH); } diff --git a/src/Symfony/Component/Routing/Loader/ClosureLoader.php b/src/Symfony/Component/Routing/Loader/ClosureLoader.php index 9edab1e9e3..5df9f6ae8f 100644 --- a/src/Symfony/Component/Routing/Loader/ClosureLoader.php +++ b/src/Symfony/Component/Routing/Loader/ClosureLoader.php @@ -20,8 +20,6 @@ use Symfony\Component\Routing\RouteCollection; * The Closure must return a RouteCollection instance. * * @author Fabien Potencier - * - * @api */ class ClosureLoader extends Loader { @@ -32,8 +30,6 @@ class ClosureLoader extends Loader * @param string|null $type The resource type * * @return RouteCollection A RouteCollection instance - * - * @api */ public function load($closure, $type = null) { @@ -42,8 +38,6 @@ class ClosureLoader extends Loader /** * {@inheritdoc} - * - * @api */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/Routing/Loader/PhpFileLoader.php b/src/Symfony/Component/Routing/Loader/PhpFileLoader.php index 98b7efbf47..62b665dd4d 100644 --- a/src/Symfony/Component/Routing/Loader/PhpFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/PhpFileLoader.php @@ -21,8 +21,6 @@ use Symfony\Component\Routing\RouteCollection; * The file must return a RouteCollection instance. * * @author Fabien Potencier - * - * @api */ class PhpFileLoader extends FileLoader { @@ -33,8 +31,6 @@ class PhpFileLoader extends FileLoader * @param string|null $type The resource type * * @return RouteCollection A RouteCollection instance - * - * @api */ public function load($file, $type = null) { @@ -52,8 +48,6 @@ class PhpFileLoader extends FileLoader /** * {@inheritdoc} - * - * @api */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php index 74593f3d84..258812c5be 100644 --- a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php @@ -22,8 +22,6 @@ use Symfony\Component\Config\Util\XmlUtils; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class XmlFileLoader extends FileLoader { @@ -40,8 +38,6 @@ class XmlFileLoader extends FileLoader * * @throws \InvalidArgumentException When the file cannot be loaded or when the XML cannot be * parsed because it does not validate against the scheme. - * - * @api */ public function load($file, $type = null) { @@ -94,8 +90,6 @@ class XmlFileLoader extends FileLoader /** * {@inheritdoc} - * - * @api */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/Routing/Loader/YamlFileLoader.php b/src/Symfony/Component/Routing/Loader/YamlFileLoader.php index f5438f256f..32c3bde18d 100644 --- a/src/Symfony/Component/Routing/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/YamlFileLoader.php @@ -23,8 +23,6 @@ use Symfony\Component\Config\Loader\FileLoader; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class YamlFileLoader extends FileLoader { @@ -42,8 +40,6 @@ class YamlFileLoader extends FileLoader * @return RouteCollection A RouteCollection instance * * @throws \InvalidArgumentException When a route can't be parsed because YAML is invalid - * - * @api */ public function load($file, $type = null) { @@ -104,8 +100,6 @@ class YamlFileLoader extends FileLoader /** * {@inheritdoc} - * - * @api */ public function supports($resource, $type = null) { diff --git a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php index ee1e58b848..cbfde6025f 100644 --- a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php +++ b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php @@ -16,8 +16,6 @@ use Symfony\Component\Routing\Route; /** * @author Fabien Potencier - * - * @api */ abstract class RedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInterface { diff --git a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.php b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.php index ea91e07511..4dd89699a2 100644 --- a/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.php +++ b/src/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Routing\Matcher; * RedirectableUrlMatcherInterface knows how to redirect the user. * * @author Fabien Potencier - * - * @api */ interface RedirectableUrlMatcherInterface { @@ -28,8 +26,6 @@ interface RedirectableUrlMatcherInterface * @param string|null $scheme The URL scheme (null to keep the current one) * * @return array An array of parameters - * - * @api */ public function redirect($path, $route, $scheme = null); } diff --git a/src/Symfony/Component/Routing/Matcher/UrlMatcher.php b/src/Symfony/Component/Routing/Matcher/UrlMatcher.php index 1b0e78307e..5bd68b3995 100644 --- a/src/Symfony/Component/Routing/Matcher/UrlMatcher.php +++ b/src/Symfony/Component/Routing/Matcher/UrlMatcher.php @@ -21,8 +21,6 @@ use Symfony\Component\Routing\Route; * UrlMatcher matches URL based on a set of routes. * * @author Fabien Potencier - * - * @api */ class UrlMatcher implements UrlMatcherInterface { @@ -50,8 +48,6 @@ class UrlMatcher implements UrlMatcherInterface * * @param RouteCollection $routes A RouteCollection instance * @param RequestContext $context The context - * - * @api */ public function __construct(RouteCollection $routes, RequestContext $context) { diff --git a/src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php b/src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php index dd718b1569..af38662fea 100644 --- a/src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php +++ b/src/Symfony/Component/Routing/Matcher/UrlMatcherInterface.php @@ -19,8 +19,6 @@ use Symfony\Component\Routing\Exception\MethodNotAllowedException; * UrlMatcherInterface is the interface that all URL matcher classes must implement. * * @author Fabien Potencier - * - * @api */ interface UrlMatcherInterface extends RequestContextAwareInterface { @@ -36,8 +34,6 @@ interface UrlMatcherInterface extends RequestContextAwareInterface * * @throws ResourceNotFoundException If the resource could not be found * @throws MethodNotAllowedException If the resource was found but the request method is not allowed - * - * @api */ public function match($pathinfo); } diff --git a/src/Symfony/Component/Routing/RequestContext.php b/src/Symfony/Component/Routing/RequestContext.php index ee0ae9692e..7d28dd336b 100644 --- a/src/Symfony/Component/Routing/RequestContext.php +++ b/src/Symfony/Component/Routing/RequestContext.php @@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Request; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class RequestContext { @@ -48,8 +46,6 @@ class RequestContext * @param int $httpsPort The HTTPS port * @param string $path The path * @param string $queryString The query string - * - * @api */ public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', $scheme = 'http', $httpPort = 80, $httpsPort = 443, $path = '/', $queryString = '') { @@ -94,8 +90,6 @@ class RequestContext * Sets the base URL. * * @param string $baseUrl The base URL - * - * @api */ public function setBaseUrl($baseUrl) { @@ -138,8 +132,6 @@ class RequestContext * Sets the HTTP method. * * @param string $method The HTTP method - * - * @api */ public function setMethod($method) { @@ -162,8 +154,6 @@ class RequestContext * Sets the HTTP host. * * @param string $host The HTTP host - * - * @api */ public function setHost($host) { @@ -184,8 +174,6 @@ class RequestContext * Sets the HTTP scheme. * * @param string $scheme The HTTP scheme - * - * @api */ public function setScheme($scheme) { @@ -206,8 +194,6 @@ class RequestContext * Sets the HTTP port. * * @param int $httpPort The HTTP port - * - * @api */ public function setHttpPort($httpPort) { @@ -228,8 +214,6 @@ class RequestContext * Sets the HTTPS port. * * @param int $httpsPort The HTTPS port - * - * @api */ public function setHttpsPort($httpsPort) { @@ -250,8 +234,6 @@ class RequestContext * Sets the query string. * * @param string $queryString The query string (after "?") - * - * @api */ public function setQueryString($queryString) { @@ -312,8 +294,6 @@ class RequestContext * * @param string $name A parameter name * @param mixed $parameter The parameter value - * - * @api */ public function setParameter($name, $parameter) { diff --git a/src/Symfony/Component/Routing/RequestContextAwareInterface.php b/src/Symfony/Component/Routing/RequestContextAwareInterface.php index daf52549dd..ebb0ef46ed 100644 --- a/src/Symfony/Component/Routing/RequestContextAwareInterface.php +++ b/src/Symfony/Component/Routing/RequestContextAwareInterface.php @@ -11,17 +11,12 @@ namespace Symfony\Component\Routing; -/** - * @api - */ interface RequestContextAwareInterface { /** * Sets the request context. * * @param RequestContext $context The context - * - * @api */ public function setContext(RequestContext $context); @@ -29,8 +24,6 @@ interface RequestContextAwareInterface * Gets the request context. * * @return RequestContext The context - * - * @api */ public function getContext(); } diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index c362f17e46..d4b00ac5da 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Routing; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class Route implements \Serializable { @@ -75,8 +73,6 @@ class Route implements \Serializable * @param string $host The host pattern to match * @param string|array $schemes A required URI scheme or an array of restricted schemes * @param string|array $methods A required HTTP method or an array of restricted methods - * - * @api */ public function __construct($path, array $defaults = array(), array $requirements = array(), array $options = array(), $host = '', $schemes = array(), $methods = array()) { @@ -356,8 +352,6 @@ class Route implements \Serializable * @param mixed $value The option value * * @return Route The current Route instance - * - * @api */ public function setOption($name, $value) { @@ -467,8 +461,6 @@ class Route implements \Serializable * @param mixed $default The default value * * @return Route The current Route instance - * - * @api */ public function setDefault($name, $default) { @@ -554,8 +546,6 @@ class Route implements \Serializable * @param string $regex The regex * * @return Route The current Route instance - * - * @api */ public function setRequirement($key, $regex) { diff --git a/src/Symfony/Component/Routing/RouteCollection.php b/src/Symfony/Component/Routing/RouteCollection.php index 47fc141164..a7bafb4497 100644 --- a/src/Symfony/Component/Routing/RouteCollection.php +++ b/src/Symfony/Component/Routing/RouteCollection.php @@ -22,8 +22,6 @@ use Symfony\Component\Config\Resource\ResourceInterface; * * @author Fabien Potencier * @author Tobias Schultze - * - * @api */ class RouteCollection implements \IteratorAggregate, \Countable { @@ -73,8 +71,6 @@ class RouteCollection implements \IteratorAggregate, \Countable * * @param string $name The route name * @param Route $route A Route instance - * - * @api */ public function add($name, Route $route) { @@ -122,8 +118,6 @@ class RouteCollection implements \IteratorAggregate, \Countable * routes of the added collection. * * @param RouteCollection $collection A RouteCollection instance - * - * @api */ public function addCollection(RouteCollection $collection) { @@ -143,8 +137,6 @@ class RouteCollection implements \IteratorAggregate, \Countable * @param string $prefix An optional prefix to add before each pattern of the route collection * @param array $defaults An array of default values * @param array $requirements An array of requirements - * - * @api */ public function addPrefix($prefix, array $defaults = array(), array $requirements = array()) { diff --git a/src/Symfony/Component/Templating/DelegatingEngine.php b/src/Symfony/Component/Templating/DelegatingEngine.php index cd37051943..706c3f7d6f 100644 --- a/src/Symfony/Component/Templating/DelegatingEngine.php +++ b/src/Symfony/Component/Templating/DelegatingEngine.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating; * DelegatingEngine selects an engine for a given template. * * @author Fabien Potencier - * - * @api */ class DelegatingEngine implements EngineInterface, StreamingEngineInterface { @@ -29,8 +27,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface * Constructor. * * @param EngineInterface[] $engines An array of EngineInterface instances to add - * - * @api */ public function __construct(array $engines = array()) { @@ -42,8 +38,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface /** * {@inheritdoc} - * - * @api */ public function render($name, array $parameters = array()) { @@ -52,8 +46,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface /** * {@inheritdoc} - * - * @api */ public function stream($name, array $parameters = array()) { @@ -67,8 +59,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface /** * {@inheritdoc} - * - * @api */ public function exists($name) { @@ -79,8 +69,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface * Adds an engine. * * @param EngineInterface $engine An EngineInterface instance - * - * @api */ public function addEngine(EngineInterface $engine) { @@ -89,8 +77,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface /** * {@inheritdoc} - * - * @api */ public function supports($name) { @@ -111,8 +97,6 @@ class DelegatingEngine implements EngineInterface, StreamingEngineInterface * @return EngineInterface The engine * * @throws \RuntimeException if no engine able to work with the template is found - * - * @api */ protected function getEngine($name) { diff --git a/src/Symfony/Component/Templating/EngineInterface.php b/src/Symfony/Component/Templating/EngineInterface.php index d694d71e40..f0c213259b 100644 --- a/src/Symfony/Component/Templating/EngineInterface.php +++ b/src/Symfony/Component/Templating/EngineInterface.php @@ -27,8 +27,6 @@ namespace Symfony\Component\Templating; * the template. * * @author Fabien Potencier - * - * @api */ interface EngineInterface { @@ -41,8 +39,6 @@ interface EngineInterface * @return string The evaluated template as a string * * @throws \RuntimeException if the template cannot be rendered - * - * @api */ public function render($name, array $parameters = array()); @@ -52,8 +48,6 @@ interface EngineInterface * @param mixed $name A template name or a TemplateReferenceInterface instance * * @return bool true if the template exists, false otherwise - * - * @api */ public function exists($name); @@ -63,8 +57,6 @@ interface EngineInterface * @param mixed $name A template name or a TemplateReferenceInterface instance * * @return bool true if this class supports the given template, false otherwise - * - * @api */ public function supports($name); } diff --git a/src/Symfony/Component/Templating/Helper/Helper.php b/src/Symfony/Component/Templating/Helper/Helper.php index e10852d505..2f34fb22d2 100644 --- a/src/Symfony/Component/Templating/Helper/Helper.php +++ b/src/Symfony/Component/Templating/Helper/Helper.php @@ -18,8 +18,6 @@ namespace Symfony\Component\Templating\Helper; * class that exposes a read-only interface for templates. * * @author Fabien Potencier - * - * @api */ abstract class Helper implements HelperInterface { @@ -29,8 +27,6 @@ abstract class Helper implements HelperInterface * Sets the default charset. * * @param string $charset The charset - * - * @api */ public function setCharset($charset) { @@ -41,8 +37,6 @@ abstract class Helper implements HelperInterface * Gets the default charset. * * @return string The default charset - * - * @api */ public function getCharset() { diff --git a/src/Symfony/Component/Templating/Helper/HelperInterface.php b/src/Symfony/Component/Templating/Helper/HelperInterface.php index eeb6730da8..ce67c4ac70 100644 --- a/src/Symfony/Component/Templating/Helper/HelperInterface.php +++ b/src/Symfony/Component/Templating/Helper/HelperInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating\Helper; * HelperInterface is the interface all helpers must implement. * * @author Fabien Potencier - * - * @api */ interface HelperInterface { @@ -24,8 +22,6 @@ interface HelperInterface * Returns the canonical name of this helper. * * @return string The canonical name - * - * @api */ public function getName(); @@ -33,8 +29,6 @@ interface HelperInterface * Sets the default charset. * * @param string $charset The charset - * - * @api */ public function setCharset($charset); @@ -42,8 +36,6 @@ interface HelperInterface * Gets the default charset. * * @return string The default charset - * - * @api */ public function getCharset(); } diff --git a/src/Symfony/Component/Templating/Helper/SlotsHelper.php b/src/Symfony/Component/Templating/Helper/SlotsHelper.php index f7366a5afc..8fa5ff5ff2 100644 --- a/src/Symfony/Component/Templating/Helper/SlotsHelper.php +++ b/src/Symfony/Component/Templating/Helper/SlotsHelper.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating\Helper; * SlotsHelper manages template slots. * * @author Fabien Potencier - * - * @api */ class SlotsHelper extends Helper { @@ -32,8 +30,6 @@ class SlotsHelper extends Helper * @param string $name The slot name * * @throws \InvalidArgumentException if a slot with the same name is already started - * - * @api */ public function start($name) { @@ -52,8 +48,6 @@ class SlotsHelper extends Helper * Stops a slot. * * @throws \LogicException if no slot has been started - * - * @api */ public function stop() { @@ -72,8 +66,6 @@ class SlotsHelper extends Helper * @param string $name The slot name * * @return bool - * - * @api */ public function has($name) { @@ -87,8 +79,6 @@ class SlotsHelper extends Helper * @param bool|string $default The default slot content * * @return string The slot content - * - * @api */ public function get($name, $default = false) { @@ -100,8 +90,6 @@ class SlotsHelper extends Helper * * @param string $name The slot name * @param string $content The slot content - * - * @api */ public function set($name, $content) { @@ -115,8 +103,6 @@ class SlotsHelper extends Helper * @param bool|string $default The default slot content * * @return bool true if the slot is defined or if a default content has been provided, false otherwise - * - * @api */ public function output($name, $default = false) { @@ -139,8 +125,6 @@ class SlotsHelper extends Helper * Returns the canonical name of this helper. * * @return string The canonical name - * - * @api */ public function getName() { diff --git a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php index 9b00ba9f72..edcac5af6e 100644 --- a/src/Symfony/Component/Templating/Loader/FilesystemLoader.php +++ b/src/Symfony/Component/Templating/Loader/FilesystemLoader.php @@ -19,8 +19,6 @@ use Symfony\Component\Templating\TemplateReferenceInterface; * FilesystemLoader is a loader that read templates from the filesystem. * * @author Fabien Potencier - * - * @api */ class FilesystemLoader extends Loader { @@ -30,8 +28,6 @@ class FilesystemLoader extends Loader * Constructor. * * @param array $templatePathPatterns An array of path patterns to look for templates - * - * @api */ public function __construct($templatePathPatterns) { @@ -44,8 +40,6 @@ class FilesystemLoader extends Loader * @param TemplateReferenceInterface $template A template * * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise - * - * @api */ public function load(TemplateReferenceInterface $template) { @@ -91,8 +85,6 @@ class FilesystemLoader extends Loader * @param int $time The last modification time of the cached template (timestamp) * * @return bool true if the template is still fresh, false otherwise - * - * @api */ public function isFresh(TemplateReferenceInterface $template, $time) { diff --git a/src/Symfony/Component/Templating/Loader/LoaderInterface.php b/src/Symfony/Component/Templating/Loader/LoaderInterface.php index dff5c976b9..0795dcbd19 100644 --- a/src/Symfony/Component/Templating/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Templating/Loader/LoaderInterface.php @@ -18,8 +18,6 @@ use Symfony\Component\Templating\Storage\Storage; * LoaderInterface is the interface all loaders must implement. * * @author Fabien Potencier - * - * @api */ interface LoaderInterface { @@ -29,8 +27,6 @@ interface LoaderInterface * @param TemplateReferenceInterface $template A template * * @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise - * - * @api */ public function load(TemplateReferenceInterface $template); @@ -41,8 +37,6 @@ interface LoaderInterface * @param int $time The last modification time of the cached template (timestamp) * * @return bool - * - * @api */ public function isFresh(TemplateReferenceInterface $template, $time); } diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index 0562249743..93da75bf35 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -21,8 +21,6 @@ use Symfony\Component\Templating\Loader\LoaderInterface; * PhpEngine is an engine able to render PHP templates. * * @author Fabien Potencier - * - * @api */ class PhpEngine implements EngineInterface, \ArrayAccess { @@ -76,8 +74,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @throws \InvalidArgumentException if the template does not exist * @throws \RuntimeException if the template cannot be rendered - * - * @api */ public function render($name, array $parameters = array()) { @@ -113,8 +109,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param mixed $name A template name or a TemplateReferenceInterface instance * * @return bool true if the template exists, false otherwise - * - * @api */ public function exists($name) { @@ -133,8 +127,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param mixed $name A template name or a TemplateReferenceInterface instance * * @return bool true if this class supports the given resource, false otherwise - * - * @api */ public function supports($name) { @@ -188,8 +180,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @return HelperInterface The helper value * * @throws \InvalidArgumentException if the helper is not defined - * - * @api */ public function offsetGet($name) { @@ -202,8 +192,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param string $name The helper name * * @return bool true if the helper is defined, false otherwise - * - * @api */ public function offsetExists($name) { @@ -215,8 +203,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param HelperInterface $name The helper instance * @param string $value An alias - * - * @api */ public function offsetSet($name, $value) { @@ -229,8 +215,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param string $name The helper name * * @throws \LogicException - * - * @api */ public function offsetUnset($name) { @@ -241,8 +225,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Adds some helpers. * * @param HelperInterface[] $helpers An array of helper - * - * @api */ public function addHelpers(array $helpers) { @@ -255,8 +237,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Sets the helpers. * * @param HelperInterface[] $helpers An array of helper - * - * @api */ public function setHelpers(array $helpers) { @@ -269,8 +249,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param HelperInterface $helper The helper instance * @param string $alias An alias - * - * @api */ public function set(HelperInterface $helper, $alias = null) { @@ -288,8 +266,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param string $name The helper name * * @return bool true if the helper is defined, false otherwise - * - * @api */ public function has($name) { @@ -304,8 +280,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @return HelperInterface The helper instance * * @throws \InvalidArgumentException if the helper is not defined - * - * @api */ public function get($name) { @@ -320,8 +294,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Decorates the current template with another one. * * @param string $template The decorator logical name - * - * @api */ public function extend($template) { @@ -335,8 +307,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @param string $context The context name * * @return string The escaped value - * - * @api */ public function escape($value, $context = 'html') { @@ -361,8 +331,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Sets the charset to use. * * @param string $charset The charset - * - * @api */ public function setCharset($charset) { @@ -377,8 +345,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Gets the current charset. * * @return string The current charset - * - * @api */ public function getCharset() { @@ -390,8 +356,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * * @param string $context The escaper context (html, js, ...) * @param mixed $escaper A PHP callable - * - * @api */ public function setEscaper($context, $escaper) { @@ -407,8 +371,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * @return mixed $escaper A PHP callable * * @throws \InvalidArgumentException - * - * @api */ public function getEscaper($context) { @@ -422,8 +384,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess /** * @param string $name * @param mixed $value - * - * @api */ public function addGlobal($name, $value) { @@ -434,8 +394,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess * Returns the assigned globals. * * @return array - * - * @api */ public function getGlobals() { diff --git a/src/Symfony/Component/Templating/Storage/FileStorage.php b/src/Symfony/Component/Templating/Storage/FileStorage.php index 3f45eaf448..9d3183adc0 100644 --- a/src/Symfony/Component/Templating/Storage/FileStorage.php +++ b/src/Symfony/Component/Templating/Storage/FileStorage.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating\Storage; * FileStorage represents a template stored on the filesystem. * * @author Fabien Potencier - * - * @api */ class FileStorage extends Storage { @@ -24,8 +22,6 @@ class FileStorage extends Storage * Returns the content of the template. * * @return string The template content - * - * @api */ public function getContent() { diff --git a/src/Symfony/Component/Templating/Storage/Storage.php b/src/Symfony/Component/Templating/Storage/Storage.php index da463b8a15..e5ad2c4818 100644 --- a/src/Symfony/Component/Templating/Storage/Storage.php +++ b/src/Symfony/Component/Templating/Storage/Storage.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating\Storage; * Storage is the base class for all storage classes. * * @author Fabien Potencier - * - * @api */ abstract class Storage { @@ -26,8 +24,6 @@ abstract class Storage * Constructor. * * @param string $template The template name - * - * @api */ public function __construct($template) { @@ -48,8 +44,6 @@ abstract class Storage * Returns the content of the template. * * @return string The template content - * - * @api */ abstract public function getContent(); } diff --git a/src/Symfony/Component/Templating/Storage/StringStorage.php b/src/Symfony/Component/Templating/Storage/StringStorage.php index ed5ba4ca37..ce3f51ebeb 100644 --- a/src/Symfony/Component/Templating/Storage/StringStorage.php +++ b/src/Symfony/Component/Templating/Storage/StringStorage.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating\Storage; * StringStorage represents a template stored in a string. * * @author Fabien Potencier - * - * @api */ class StringStorage extends Storage { @@ -24,8 +22,6 @@ class StringStorage extends Storage * Returns the content of the template. * * @return string The template content - * - * @api */ public function getContent() { diff --git a/src/Symfony/Component/Templating/TemplateNameParser.php b/src/Symfony/Component/Templating/TemplateNameParser.php index 585697afae..19ed0844ea 100644 --- a/src/Symfony/Component/Templating/TemplateNameParser.php +++ b/src/Symfony/Component/Templating/TemplateNameParser.php @@ -18,8 +18,6 @@ namespace Symfony\Component\Templating; * and the extension for the engine. * * @author Fabien Potencier - * - * @api */ class TemplateNameParser implements TemplateNameParserInterface { @@ -29,8 +27,6 @@ class TemplateNameParser implements TemplateNameParserInterface * @param string $name A template name * * @return TemplateReferenceInterface A template - * - * @api */ public function parse($name) { diff --git a/src/Symfony/Component/Templating/TemplateNameParserInterface.php b/src/Symfony/Component/Templating/TemplateNameParserInterface.php index 6305f43be2..0899c9ebf7 100644 --- a/src/Symfony/Component/Templating/TemplateNameParserInterface.php +++ b/src/Symfony/Component/Templating/TemplateNameParserInterface.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Templating; * instances. * * @author Fabien Potencier - * - * @api */ interface TemplateNameParserInterface { @@ -27,8 +25,6 @@ interface TemplateNameParserInterface * @param string $name A template name * * @return TemplateReferenceInterface A template - * - * @api */ public function parse($name); } diff --git a/src/Symfony/Component/Templating/TemplateReference.php b/src/Symfony/Component/Templating/TemplateReference.php index cc8d1bf498..a75e5683a6 100644 --- a/src/Symfony/Component/Templating/TemplateReference.php +++ b/src/Symfony/Component/Templating/TemplateReference.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating; * Internal representation of a template. * * @author Victor Berchet - * - * @api */ class TemplateReference implements TemplateReferenceInterface { @@ -44,8 +42,6 @@ class TemplateReference implements TemplateReferenceInterface * @return TemplateReferenceInterface The TemplateReferenceInterface instance * * @throws \InvalidArgumentException if the parameter is not defined - * - * @api */ public function set($name, $value) { @@ -66,8 +62,6 @@ class TemplateReference implements TemplateReferenceInterface * @return string The parameter value * * @throws \InvalidArgumentException if the parameter is not defined - * - * @api */ public function get($name) { @@ -82,8 +76,6 @@ class TemplateReference implements TemplateReferenceInterface * Gets the template parameters. * * @return array An array of parameters - * - * @api */ public function all() { @@ -96,8 +88,6 @@ class TemplateReference implements TemplateReferenceInterface * By default, it just returns the template name. * * @return string A path to the template or a resource - * - * @api */ public function getPath() { @@ -110,8 +100,6 @@ class TemplateReference implements TemplateReferenceInterface * The template name acts as a unique identifier for the template. * * @return string The template name - * - * @api */ public function getLogicalName() { diff --git a/src/Symfony/Component/Templating/TemplateReferenceInterface.php b/src/Symfony/Component/Templating/TemplateReferenceInterface.php index 230c7fe968..b8b25a53aa 100644 --- a/src/Symfony/Component/Templating/TemplateReferenceInterface.php +++ b/src/Symfony/Component/Templating/TemplateReferenceInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Templating; * Interface to be implemented by all templates. * * @author Victor Berchet - * - * @api */ interface TemplateReferenceInterface { @@ -24,8 +22,6 @@ interface TemplateReferenceInterface * Gets the template parameters. * * @return array An array of parameters - * - * @api */ public function all(); @@ -38,8 +34,6 @@ interface TemplateReferenceInterface * @return TemplateReferenceInterface The TemplateReferenceInterface instance * * @throws \InvalidArgumentException if the parameter is not defined - * - * @api */ public function set($name, $value); @@ -51,8 +45,6 @@ interface TemplateReferenceInterface * @return string The parameter value * * @throws \InvalidArgumentException if the parameter is not defined - * - * @api */ public function get($name); @@ -62,8 +54,6 @@ interface TemplateReferenceInterface * By default, it just returns the template name. * * @return string A path to the template or a resource - * - * @api */ public function getPath(); @@ -73,8 +63,6 @@ interface TemplateReferenceInterface * The template name acts as a unique identifier for the template. * * @return string The template name - * - * @api */ public function getLogicalName(); } diff --git a/src/Symfony/Component/Translation/Exception/ExceptionInterface.php b/src/Symfony/Component/Translation/Exception/ExceptionInterface.php index 7757e669a0..c85fb93ca8 100644 --- a/src/Symfony/Component/Translation/Exception/ExceptionInterface.php +++ b/src/Symfony/Component/Translation/Exception/ExceptionInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Translation\Exception; * Exception interface for all exceptions thrown by the component. * * @author Fabien Potencier - * - * @api */ interface ExceptionInterface { diff --git a/src/Symfony/Component/Translation/Exception/InvalidResourceException.php b/src/Symfony/Component/Translation/Exception/InvalidResourceException.php index 6413f1ae79..cf079432c9 100644 --- a/src/Symfony/Component/Translation/Exception/InvalidResourceException.php +++ b/src/Symfony/Component/Translation/Exception/InvalidResourceException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Translation\Exception; * Thrown when a resource cannot be loaded. * * @author Fabien Potencier - * - * @api */ class InvalidResourceException extends \InvalidArgumentException implements ExceptionInterface { diff --git a/src/Symfony/Component/Translation/Exception/NotFoundResourceException.php b/src/Symfony/Component/Translation/Exception/NotFoundResourceException.php index 7826e5ce51..cff73ae30b 100644 --- a/src/Symfony/Component/Translation/Exception/NotFoundResourceException.php +++ b/src/Symfony/Component/Translation/Exception/NotFoundResourceException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Translation\Exception; * Thrown when a resource does not exist. * * @author Fabien Potencier - * - * @api */ class NotFoundResourceException extends \InvalidArgumentException implements ExceptionInterface { diff --git a/src/Symfony/Component/Translation/IdentityTranslator.php b/src/Symfony/Component/Translation/IdentityTranslator.php index 8564aa7b3c..a4e349680c 100644 --- a/src/Symfony/Component/Translation/IdentityTranslator.php +++ b/src/Symfony/Component/Translation/IdentityTranslator.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Translation; * IdentityTranslator does not translate anything. * * @author Fabien Potencier - * - * @api */ class IdentityTranslator implements TranslatorInterface { @@ -27,8 +25,6 @@ class IdentityTranslator implements TranslatorInterface * Constructor. * * @param MessageSelector $selector The message selector for pluralization - * - * @api */ public function __construct(MessageSelector $selector) { @@ -37,8 +33,6 @@ class IdentityTranslator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function setLocale($locale) { @@ -47,8 +41,6 @@ class IdentityTranslator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function getLocale() { @@ -57,8 +49,6 @@ class IdentityTranslator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function trans($id, array $parameters = array(), $domain = 'messages', $locale = null) { @@ -67,8 +57,6 @@ class IdentityTranslator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null) { diff --git a/src/Symfony/Component/Translation/Loader/ArrayLoader.php b/src/Symfony/Component/Translation/Loader/ArrayLoader.php index 68ba81d465..9a595b7dad 100644 --- a/src/Symfony/Component/Translation/Loader/ArrayLoader.php +++ b/src/Symfony/Component/Translation/Loader/ArrayLoader.php @@ -17,15 +17,11 @@ use Symfony\Component\Translation\MessageCatalogue; * ArrayLoader loads translations from a PHP array. * * @author Fabien Potencier - * - * @api */ class ArrayLoader implements LoaderInterface { /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/Loader/CsvFileLoader.php b/src/Symfony/Component/Translation/Loader/CsvFileLoader.php index fc927601d9..ee9224d2ba 100644 --- a/src/Symfony/Component/Translation/Loader/CsvFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/CsvFileLoader.php @@ -19,8 +19,6 @@ use Symfony\Component\Config\Resource\FileResource; * CsvFileLoader loads translations from CSV files. * * @author Saša Stamenković - * - * @api */ class CsvFileLoader extends ArrayLoader { @@ -30,8 +28,6 @@ class CsvFileLoader extends ArrayLoader /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/Loader/LoaderInterface.php b/src/Symfony/Component/Translation/Loader/LoaderInterface.php index 0b28e14a0d..6b65fe380b 100644 --- a/src/Symfony/Component/Translation/Loader/LoaderInterface.php +++ b/src/Symfony/Component/Translation/Loader/LoaderInterface.php @@ -19,8 +19,6 @@ use Symfony\Component\Translation\Exception\NotFoundResourceException; * LoaderInterface is the interface implemented by all translation loaders. * * @author Fabien Potencier - * - * @api */ interface LoaderInterface { @@ -33,8 +31,6 @@ interface LoaderInterface * * @return MessageCatalogue A MessageCatalogue instance * - * @api - * * @throws NotFoundResourceException when the resource cannot be found * @throws InvalidResourceException when the resource cannot be loaded */ diff --git a/src/Symfony/Component/Translation/Loader/PhpFileLoader.php b/src/Symfony/Component/Translation/Loader/PhpFileLoader.php index 9ce2e7d2fa..a52e0bb611 100644 --- a/src/Symfony/Component/Translation/Loader/PhpFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/PhpFileLoader.php @@ -19,15 +19,11 @@ use Symfony\Component\Config\Resource\FileResource; * PhpFileLoader loads translations from PHP files returning an array of translations. * * @author Fabien Potencier - * - * @api */ class PhpFileLoader extends ArrayLoader { /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/Loader/QtFileLoader.php b/src/Symfony/Component/Translation/Loader/QtFileLoader.php index 6dd0696c6f..657bd6eb53 100644 --- a/src/Symfony/Component/Translation/Loader/QtFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/QtFileLoader.php @@ -21,15 +21,11 @@ use Symfony\Component\Config\Resource\FileResource; * QtFileLoader loads translations from QT Translations XML files. * * @author Benjamin Eberlei - * - * @api */ class QtFileLoader implements LoaderInterface { /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/Loader/XliffFileLoader.php b/src/Symfony/Component/Translation/Loader/XliffFileLoader.php index 6306da672e..3c4deca5ac 100644 --- a/src/Symfony/Component/Translation/Loader/XliffFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/XliffFileLoader.php @@ -21,15 +21,11 @@ use Symfony\Component\Config\Resource\FileResource; * XliffFileLoader loads translations from XLIFF files. * * @author Fabien Potencier - * - * @api */ class XliffFileLoader implements LoaderInterface { /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/Loader/YamlFileLoader.php b/src/Symfony/Component/Translation/Loader/YamlFileLoader.php index fb0946cc57..a34cf05b52 100644 --- a/src/Symfony/Component/Translation/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/YamlFileLoader.php @@ -21,8 +21,6 @@ use Symfony\Component\Yaml\Exception\ParseException; * YamlFileLoader loads translations from Yaml files. * * @author Fabien Potencier - * - * @api */ class YamlFileLoader extends ArrayLoader { @@ -30,8 +28,6 @@ class YamlFileLoader extends ArrayLoader /** * {@inheritdoc} - * - * @api */ public function load($resource, $locale, $domain = 'messages') { diff --git a/src/Symfony/Component/Translation/MessageCatalogue.php b/src/Symfony/Component/Translation/MessageCatalogue.php index 35beb3d947..dd354a85aa 100644 --- a/src/Symfony/Component/Translation/MessageCatalogue.php +++ b/src/Symfony/Component/Translation/MessageCatalogue.php @@ -17,8 +17,6 @@ use Symfony\Component\Config\Resource\ResourceInterface; * MessageCatalogue. * * @author Fabien Potencier - * - * @api */ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterface { @@ -34,8 +32,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf * * @param string $locale The locale * @param array $messages An array of messages classified by domain - * - * @api */ public function __construct($locale, array $messages = array()) { @@ -45,8 +41,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function getLocale() { @@ -55,8 +49,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function getDomains() { @@ -65,8 +57,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function all($domain = null) { @@ -79,8 +69,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function set($id, $translation, $domain = 'messages') { @@ -89,8 +77,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function has($id, $domain = 'messages') { @@ -115,8 +101,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function get($id, $domain = 'messages') { @@ -133,8 +117,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function replace($messages, $domain = 'messages') { @@ -145,8 +127,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function add($messages, $domain = 'messages') { @@ -159,8 +139,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function addCatalogue(MessageCatalogueInterface $catalogue) { @@ -184,8 +162,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue) { @@ -214,8 +190,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function getFallbackCatalogue() { @@ -224,8 +198,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function getResources() { @@ -234,8 +206,6 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf /** * {@inheritdoc} - * - * @api */ public function addResource(ResourceInterface $resource) { diff --git a/src/Symfony/Component/Translation/MessageCatalogueInterface.php b/src/Symfony/Component/Translation/MessageCatalogueInterface.php index 647e3374e1..b1b516dc28 100644 --- a/src/Symfony/Component/Translation/MessageCatalogueInterface.php +++ b/src/Symfony/Component/Translation/MessageCatalogueInterface.php @@ -17,8 +17,6 @@ use Symfony\Component\Config\Resource\ResourceInterface; * MessageCatalogueInterface. * * @author Fabien Potencier - * - * @api */ interface MessageCatalogueInterface { @@ -26,8 +24,6 @@ interface MessageCatalogueInterface * Gets the catalogue locale. * * @return string The locale - * - * @api */ public function getLocale(); @@ -35,8 +31,6 @@ interface MessageCatalogueInterface * Gets the domains. * * @return array An array of domains - * - * @api */ public function getDomains(); @@ -48,8 +42,6 @@ interface MessageCatalogueInterface * @param string $domain The domain name * * @return array An array of messages - * - * @api */ public function all($domain = null); @@ -59,8 +51,6 @@ interface MessageCatalogueInterface * @param string $id The message id * @param string $translation The messages translation * @param string $domain The domain name - * - * @api */ public function set($id, $translation, $domain = 'messages'); @@ -71,8 +61,6 @@ interface MessageCatalogueInterface * @param string $domain The domain name * * @return bool true if the message has a translation, false otherwise - * - * @api */ public function has($id, $domain = 'messages'); @@ -83,8 +71,6 @@ interface MessageCatalogueInterface * @param string $domain The domain name * * @return bool true if the message has a translation, false otherwise - * - * @api */ public function defines($id, $domain = 'messages'); @@ -95,8 +81,6 @@ interface MessageCatalogueInterface * @param string $domain The domain name * * @return string The message translation - * - * @api */ public function get($id, $domain = 'messages'); @@ -105,8 +89,6 @@ interface MessageCatalogueInterface * * @param array $messages An array of translations * @param string $domain The domain name - * - * @api */ public function replace($messages, $domain = 'messages'); @@ -115,8 +97,6 @@ interface MessageCatalogueInterface * * @param array $messages An array of translations * @param string $domain The domain name - * - * @api */ public function add($messages, $domain = 'messages'); @@ -126,8 +106,6 @@ interface MessageCatalogueInterface * The two catalogues must have the same locale. * * @param MessageCatalogueInterface $catalogue A MessageCatalogueInterface instance - * - * @api */ public function addCatalogue(MessageCatalogueInterface $catalogue); @@ -138,8 +116,6 @@ interface MessageCatalogueInterface * This is used to provide default translations when they do not exist for the current locale. * * @param MessageCatalogueInterface $catalogue A MessageCatalogueInterface instance - * - * @api */ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue); @@ -147,8 +123,6 @@ interface MessageCatalogueInterface * Gets the fallback catalogue. * * @return MessageCatalogueInterface|null A MessageCatalogueInterface instance or null when no fallback has been set - * - * @api */ public function getFallbackCatalogue(); @@ -156,8 +130,6 @@ interface MessageCatalogueInterface * Returns an array of resources loaded to build this collection. * * @return ResourceInterface[] An array of resources - * - * @api */ public function getResources(); @@ -165,8 +137,6 @@ interface MessageCatalogueInterface * Adds a resource for this collection. * * @param ResourceInterface $resource A resource instance - * - * @api */ public function addResource(ResourceInterface $resource); } diff --git a/src/Symfony/Component/Translation/MessageSelector.php b/src/Symfony/Component/Translation/MessageSelector.php index ff0f9f9d65..a06191f835 100644 --- a/src/Symfony/Component/Translation/MessageSelector.php +++ b/src/Symfony/Component/Translation/MessageSelector.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Translation; * * @author Fabien Potencier * @author Bernhard Schussek - * - * @api */ class MessageSelector { @@ -46,8 +44,6 @@ class MessageSelector * @return string * * @throws \InvalidArgumentException - * - * @api */ public function choose($message, $number, $locale) { diff --git a/src/Symfony/Component/Translation/Translator.php b/src/Symfony/Component/Translation/Translator.php index 38c5acd761..96855e8fe0 100644 --- a/src/Symfony/Component/Translation/Translator.php +++ b/src/Symfony/Component/Translation/Translator.php @@ -18,8 +18,6 @@ use Symfony\Component\Translation\Exception\NotFoundResourceException; * Translator. * * @author Fabien Potencier - * - * @api */ class Translator implements TranslatorInterface { @@ -60,8 +58,6 @@ class Translator implements TranslatorInterface * @param MessageSelector|null $selector The message selector for pluralization * * @throws \InvalidArgumentException If a locale contains invalid characters - * - * @api */ public function __construct($locale, MessageSelector $selector = null) { @@ -74,8 +70,6 @@ class Translator implements TranslatorInterface * * @param string $format The name of the loader (@see addResource()) * @param LoaderInterface $loader A LoaderInterface instance - * - * @api */ public function addLoader($format, LoaderInterface $loader) { @@ -91,8 +85,6 @@ class Translator implements TranslatorInterface * @param string $domain The domain * * @throws \InvalidArgumentException If the locale contains invalid characters - * - * @api */ public function addResource($format, $resource, $locale, $domain = null) { @@ -113,8 +105,6 @@ class Translator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function setLocale($locale) { @@ -124,8 +114,6 @@ class Translator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function getLocale() { @@ -140,8 +128,6 @@ class Translator implements TranslatorInterface * @throws \InvalidArgumentException If a locale contains invalid characters * * @deprecated since 2.3, to be removed in 3.0. Use setFallbackLocales() instead. - * - * @api */ public function setFallbackLocale($locales) { @@ -154,8 +140,6 @@ class Translator implements TranslatorInterface * @param array $locales The fallback locales * * @throws \InvalidArgumentException If a locale contains invalid characters - * - * @api */ public function setFallbackLocales(array $locales) { @@ -173,8 +157,6 @@ class Translator implements TranslatorInterface * Gets the fallback locales. * * @return array $locales The fallback locales - * - * @api */ public function getFallbackLocales() { @@ -183,8 +165,6 @@ class Translator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function trans($id, array $parameters = array(), $domain = null, $locale = null) { @@ -207,8 +187,6 @@ class Translator implements TranslatorInterface /** * {@inheritdoc} - * - * @api */ public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) { diff --git a/src/Symfony/Component/Translation/TranslatorInterface.php b/src/Symfony/Component/Translation/TranslatorInterface.php index b687789e86..f82f5df45f 100644 --- a/src/Symfony/Component/Translation/TranslatorInterface.php +++ b/src/Symfony/Component/Translation/TranslatorInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Translation; * TranslatorInterface. * * @author Fabien Potencier - * - * @api */ interface TranslatorInterface { @@ -31,8 +29,6 @@ interface TranslatorInterface * @throws \InvalidArgumentException If the locale contains invalid characters * * @return string The translated string - * - * @api */ public function trans($id, array $parameters = array(), $domain = null, $locale = null); @@ -48,8 +44,6 @@ interface TranslatorInterface * @throws \InvalidArgumentException If the locale contains invalid characters * * @return string The translated string - * - * @api */ public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null); @@ -59,8 +53,6 @@ interface TranslatorInterface * @param string $locale The locale * * @throws \InvalidArgumentException If the locale contains invalid characters - * - * @api */ public function setLocale($locale); @@ -68,8 +60,6 @@ interface TranslatorInterface * Returns the current locale. * * @return string The locale - * - * @api */ public function getLocale(); } diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php index a8dbac478d..8268cba1b1 100644 --- a/src/Symfony/Component/Validator/Constraint.php +++ b/src/Symfony/Component/Validator/Constraint.php @@ -25,8 +25,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException; * Constraint instances are immutable and serializable. * * @author Bernhard Schussek - * - * @api */ abstract class Constraint { @@ -82,8 +80,6 @@ abstract class Constraint * @throws ConstraintDefinitionException When you don't pass an associative * array, but getDefaultOption() returns * null - * - * @api */ public function __construct($options = null) { @@ -149,8 +145,6 @@ abstract class Constraint * Adds the given group if this constraint is in the Default group. * * @param string $group - * - * @api */ public function addImplicitGroupName($group) { @@ -167,8 +161,6 @@ abstract class Constraint * @return string * * @see __construct() - * - * @api */ public function getDefaultOption() { @@ -182,8 +174,6 @@ abstract class Constraint * @return array * * @see __construct() - * - * @api */ public function getRequiredOptions() { @@ -198,8 +188,6 @@ abstract class Constraint * behaviour. * * @return string - * - * @api */ public function validatedBy() { @@ -214,8 +202,6 @@ abstract class Constraint * Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT. * * @return string|array One or more constant values - * - * @api */ public function getTargets() { diff --git a/src/Symfony/Component/Validator/ConstraintValidator.php b/src/Symfony/Component/Validator/ConstraintValidator.php index 5628b9dfce..f07a2d9fa3 100644 --- a/src/Symfony/Component/Validator/ConstraintValidator.php +++ b/src/Symfony/Component/Validator/ConstraintValidator.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Validator; * Base class for constraint validators. * * @author Bernhard Schussek - * - * @api */ abstract class ConstraintValidator implements ConstraintValidatorInterface { diff --git a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php index f7538a1fef..85fd451ac4 100644 --- a/src/Symfony/Component/Validator/ConstraintValidatorInterface.php +++ b/src/Symfony/Component/Validator/ConstraintValidatorInterface.php @@ -13,8 +13,6 @@ namespace Symfony\Component\Validator; /** * @author Bernhard Schussek - * - * @api */ interface ConstraintValidatorInterface { @@ -30,8 +28,6 @@ interface ConstraintValidatorInterface * * @param mixed $value The value that should be validated * @param Constraint $constraint The constraint for the validation - * - * @api */ public function validate($value, Constraint $constraint); } diff --git a/src/Symfony/Component/Validator/ConstraintViolationInterface.php b/src/Symfony/Component/Validator/ConstraintViolationInterface.php index 232fb5513f..439a67316e 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationInterface.php @@ -32,8 +32,6 @@ namespace Symfony\Component\Validator; * element is still the person, but the property path is "address.street". * * @author Bernhard Schussek - * - * @api */ interface ConstraintViolationInterface { @@ -41,8 +39,6 @@ interface ConstraintViolationInterface * Returns the violation message. * * @return string The violation message. - * - * @api */ public function getMessage(); @@ -54,8 +50,6 @@ interface ConstraintViolationInterface * message template and parameters to a translation engine. * * @return string The raw violation message. - * - * @api */ public function getMessageTemplate(); @@ -66,8 +60,6 @@ interface ConstraintViolationInterface * that appear in the message template. * * @see getMessageTemplate() - * - * @api */ public function getMessageParameters(); @@ -96,8 +88,6 @@ interface ConstraintViolationInterface * the validation was started. Because the validator traverses * the object graph, the value at which the violation occurs * is not necessarily the value that was originally validated. - * - * @api */ public function getRoot(); @@ -112,8 +102,6 @@ interface ConstraintViolationInterface * path is "address.street". Property access is denoted by * dots, while array access is denoted by square brackets, * for example "addresses[1].street". - * - * @api */ public function getPropertyPath(); @@ -122,8 +110,6 @@ interface ConstraintViolationInterface * * @return mixed The invalid value that caused the validated constraint to * fail. - * - * @api */ public function getInvalidValue(); diff --git a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php index 088c70c915..8d15bd72b8 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationListInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationListInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Validator; * A list of constraint violations. * * @author Bernhard Schussek - * - * @api */ interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess { @@ -24,8 +22,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * Adds a constraint violation to this list. * * @param ConstraintViolationInterface $violation The violation to add. - * - * @api */ public function add(ConstraintViolationInterface $violation); @@ -33,8 +29,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * Merges an existing violation list into this list. * * @param ConstraintViolationListInterface $otherList The list to merge. - * - * @api */ public function addAll(ConstraintViolationListInterface $otherList); @@ -46,8 +40,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * @return ConstraintViolationInterface The violation. * * @throws \OutOfBoundsException If the offset does not exist. - * - * @api */ public function get($offset); @@ -57,8 +49,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * @param int $offset The violation offset. * * @return bool Whether the offset exists. - * - * @api */ public function has($offset); @@ -67,8 +57,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * * @param int $offset The violation offset. * @param ConstraintViolationInterface $violation The violation. - * - * @api */ public function set($offset, ConstraintViolationInterface $violation); @@ -76,8 +64,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar * Removes a violation at a given offset. * * @param int $offset The offset to remove. - * - * @api */ public function remove($offset); } diff --git a/src/Symfony/Component/Validator/Constraints/All.php b/src/Symfony/Component/Validator/Constraints/All.php index 9513297132..0f12fcf4e4 100644 --- a/src/Symfony/Component/Validator/Constraints/All.php +++ b/src/Symfony/Component/Validator/Constraints/All.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class All extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/AllValidator.php b/src/Symfony/Component/Validator/Constraints/AllValidator.php index 469d2a4214..09b5f6c994 100644 --- a/src/Symfony/Component/Validator/Constraints/AllValidator.php +++ b/src/Symfony/Component/Validator/Constraints/AllValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class AllValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Blank.php b/src/Symfony/Component/Validator/Constraints/Blank.php index 766ce6c7bb..ad93c74d87 100644 --- a/src/Symfony/Component/Validator/Constraints/Blank.php +++ b/src/Symfony/Component/Validator/Constraints/Blank.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Blank extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/BlankValidator.php b/src/Symfony/Component/Validator/Constraints/BlankValidator.php index 8fde2b8dd0..273ceda9f6 100644 --- a/src/Symfony/Component/Validator/Constraints/BlankValidator.php +++ b/src/Symfony/Component/Validator/Constraints/BlankValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class BlankValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Callback.php b/src/Symfony/Component/Validator/Constraints/Callback.php index 776dcd50c5..22dab44e93 100644 --- a/src/Symfony/Component/Validator/Constraints/Callback.php +++ b/src/Symfony/Component/Validator/Constraints/Callback.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"CLASS", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Callback extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/CallbackValidator.php b/src/Symfony/Component/Validator/Constraints/CallbackValidator.php index 9dc713fe93..a5aec1a9f4 100644 --- a/src/Symfony/Component/Validator/Constraints/CallbackValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CallbackValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException; * Validator for Callback constraint. * * @author Bernhard Schussek - * - * @api */ class CallbackValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Choice.php b/src/Symfony/Component/Validator/Constraints/Choice.php index c2b3436206..fb20c3346e 100644 --- a/src/Symfony/Component/Validator/Constraints/Choice.php +++ b/src/Symfony/Component/Validator/Constraints/Choice.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Choice extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php b/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php index 5455b7217f..8c7f70640a 100644 --- a/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php +++ b/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php @@ -22,8 +22,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * @author Fabien Potencier * @author Florian Eckerstorfer * @author Bernhard Schussek - * - * @api */ class ChoiceValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Collection.php b/src/Symfony/Component/Validator/Constraints/Collection.php index 8d488f6b5a..c72a56f58e 100644 --- a/src/Symfony/Component/Validator/Constraints/Collection.php +++ b/src/Symfony/Component/Validator/Constraints/Collection.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Collection extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/CollectionValidator.php b/src/Symfony/Component/Validator/Constraints/CollectionValidator.php index 4c6a714e7e..9318bd7a5e 100644 --- a/src/Symfony/Component/Validator/Constraints/CollectionValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CollectionValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class CollectionValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Count.php b/src/Symfony/Component/Validator/Constraints/Count.php index 1d64344b4a..3a36f1e663 100644 --- a/src/Symfony/Component/Validator/Constraints/Count.php +++ b/src/Symfony/Component/Validator/Constraints/Count.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Count extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/Country.php b/src/Symfony/Component/Validator/Constraints/Country.php index ff6f3d0e0a..d1df3a8744 100644 --- a/src/Symfony/Component/Validator/Constraints/Country.php +++ b/src/Symfony/Component/Validator/Constraints/Country.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Country extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/CountryValidator.php b/src/Symfony/Component/Validator/Constraints/CountryValidator.php index 536741b317..63583c9673 100644 --- a/src/Symfony/Component/Validator/Constraints/CountryValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CountryValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * Validates whether a value is a valid country code. * * @author Bernhard Schussek - * - * @api */ class CountryValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Currency.php b/src/Symfony/Component/Validator/Constraints/Currency.php index c09fe88bf2..736af838a7 100644 --- a/src/Symfony/Component/Validator/Constraints/Currency.php +++ b/src/Symfony/Component/Validator/Constraints/Currency.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Miha Vrhovnik - * - * @api */ class Currency extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/CurrencyValidator.php b/src/Symfony/Component/Validator/Constraints/CurrencyValidator.php index 89f16006a6..70504e5a32 100644 --- a/src/Symfony/Component/Validator/Constraints/CurrencyValidator.php +++ b/src/Symfony/Component/Validator/Constraints/CurrencyValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * Validates whether a value is a valid currency. * * @author Miha Vrhovnik - * - * @api */ class CurrencyValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Date.php b/src/Symfony/Component/Validator/Constraints/Date.php index 9e29168965..aff697e5b0 100644 --- a/src/Symfony/Component/Validator/Constraints/Date.php +++ b/src/Symfony/Component/Validator/Constraints/Date.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Date extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/DateTime.php b/src/Symfony/Component/Validator/Constraints/DateTime.php index 1657f43afc..948348a74d 100644 --- a/src/Symfony/Component/Validator/Constraints/DateTime.php +++ b/src/Symfony/Component/Validator/Constraints/DateTime.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class DateTime extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/DateTimeValidator.php b/src/Symfony/Component/Validator/Constraints/DateTimeValidator.php index 49e04b94f2..1de1d04993 100644 --- a/src/Symfony/Component/Validator/Constraints/DateTimeValidator.php +++ b/src/Symfony/Component/Validator/Constraints/DateTimeValidator.php @@ -13,8 +13,6 @@ namespace Symfony\Component\Validator\Constraints; /** * @author Bernhard Schussek - * - * @api */ class DateTimeValidator extends DateValidator { diff --git a/src/Symfony/Component/Validator/Constraints/DateValidator.php b/src/Symfony/Component/Validator/Constraints/DateValidator.php index 5e5250852f..ed5a022829 100644 --- a/src/Symfony/Component/Validator/Constraints/DateValidator.php +++ b/src/Symfony/Component/Validator/Constraints/DateValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class DateValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Email.php b/src/Symfony/Component/Validator/Constraints/Email.php index 95714ded2e..39868fd45f 100644 --- a/src/Symfony/Component/Validator/Constraints/Email.php +++ b/src/Symfony/Component/Validator/Constraints/Email.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Email extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/EmailValidator.php b/src/Symfony/Component/Validator/Constraints/EmailValidator.php index f3a25bdb11..c8c3c5fc72 100644 --- a/src/Symfony/Component/Validator/Constraints/EmailValidator.php +++ b/src/Symfony/Component/Validator/Constraints/EmailValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class EmailValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/False.php b/src/Symfony/Component/Validator/Constraints/False.php index b377c3255e..a739f19124 100644 --- a/src/Symfony/Component/Validator/Constraints/False.php +++ b/src/Symfony/Component/Validator/Constraints/False.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Validator\Constraints; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class False extends IsFalse { diff --git a/src/Symfony/Component/Validator/Constraints/FalseValidator.php b/src/Symfony/Component/Validator/Constraints/FalseValidator.php index 140945f76e..da96c6279d 100644 --- a/src/Symfony/Component/Validator/Constraints/FalseValidator.php +++ b/src/Symfony/Component/Validator/Constraints/FalseValidator.php @@ -13,8 +13,6 @@ namespace Symfony\Component\Validator\Constraints; /** * @author Bernhard Schussek - * - * @api */ class FalseValidator extends IsFalseValidator { diff --git a/src/Symfony/Component/Validator/Constraints/File.php b/src/Symfony/Component/Validator/Constraints/File.php index 721644038f..43ea6156f1 100644 --- a/src/Symfony/Component/Validator/Constraints/File.php +++ b/src/Symfony/Component/Validator/Constraints/File.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class File extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/FileValidator.php b/src/Symfony/Component/Validator/Constraints/FileValidator.php index 44378e681e..3d46c462a5 100644 --- a/src/Symfony/Component/Validator/Constraints/FileValidator.php +++ b/src/Symfony/Component/Validator/Constraints/FileValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\HttpFoundation\File\UploadedFile; /** * @author Bernhard Schussek - * - * @api */ class FileValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/GroupSequence.php b/src/Symfony/Component/Validator/Constraints/GroupSequence.php index e44e70d64d..bd265770b9 100644 --- a/src/Symfony/Component/Validator/Constraints/GroupSequence.php +++ b/src/Symfony/Component/Validator/Constraints/GroupSequence.php @@ -18,8 +18,6 @@ namespace Symfony\Component\Validator\Constraints; * @Target({"CLASS", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class GroupSequence { diff --git a/src/Symfony/Component/Validator/Constraints/Image.php b/src/Symfony/Component/Validator/Constraints/Image.php index ded7c9b031..4b312f9e55 100644 --- a/src/Symfony/Component/Validator/Constraints/Image.php +++ b/src/Symfony/Component/Validator/Constraints/Image.php @@ -14,8 +14,6 @@ namespace Symfony\Component\Validator\Constraints; /** * @Annotation * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) - * - * @api */ class Image extends File { diff --git a/src/Symfony/Component/Validator/Constraints/Ip.php b/src/Symfony/Component/Validator/Constraints/Ip.php index d2f98ab3e2..f51befbede 100644 --- a/src/Symfony/Component/Validator/Constraints/Ip.php +++ b/src/Symfony/Component/Validator/Constraints/Ip.php @@ -22,8 +22,6 @@ use Symfony\Component\Validator\Constraint; * * @author Bernhard Schussek * @author Joseph Bielawski - * - * @api */ class Ip extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/IpValidator.php b/src/Symfony/Component/Validator/Constraints/IpValidator.php index 726c274a42..dcad386de2 100644 --- a/src/Symfony/Component/Validator/Constraints/IpValidator.php +++ b/src/Symfony/Component/Validator/Constraints/IpValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * * @author Bernhard Schussek * @author Joseph Bielawski - * - * @api */ class IpValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/IsFalse.php b/src/Symfony/Component/Validator/Constraints/IsFalse.php index 7b1b72bd51..71a0ed618b 100644 --- a/src/Symfony/Component/Validator/Constraints/IsFalse.php +++ b/src/Symfony/Component/Validator/Constraints/IsFalse.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class IsFalse extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/IsFalseValidator.php b/src/Symfony/Component/Validator/Constraints/IsFalseValidator.php index 47c200783a..94a7c3a09d 100644 --- a/src/Symfony/Component/Validator/Constraints/IsFalseValidator.php +++ b/src/Symfony/Component/Validator/Constraints/IsFalseValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class IsFalseValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/IsNull.php b/src/Symfony/Component/Validator/Constraints/IsNull.php index 3e7fef112c..64e837a86f 100644 --- a/src/Symfony/Component/Validator/Constraints/IsNull.php +++ b/src/Symfony/Component/Validator/Constraints/IsNull.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class IsNull extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/IsNullValidator.php b/src/Symfony/Component/Validator/Constraints/IsNullValidator.php index 0072e8ff08..03fffa895a 100644 --- a/src/Symfony/Component/Validator/Constraints/IsNullValidator.php +++ b/src/Symfony/Component/Validator/Constraints/IsNullValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class IsNullValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/IsTrue.php b/src/Symfony/Component/Validator/Constraints/IsTrue.php index c0be6b8272..653135b371 100644 --- a/src/Symfony/Component/Validator/Constraints/IsTrue.php +++ b/src/Symfony/Component/Validator/Constraints/IsTrue.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class IsTrue extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/IsTrueValidator.php b/src/Symfony/Component/Validator/Constraints/IsTrueValidator.php index bef1736a1d..a1a9833c36 100644 --- a/src/Symfony/Component/Validator/Constraints/IsTrueValidator.php +++ b/src/Symfony/Component/Validator/Constraints/IsTrueValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class IsTrueValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Language.php b/src/Symfony/Component/Validator/Constraints/Language.php index e7c29dc64b..c6f513c84a 100644 --- a/src/Symfony/Component/Validator/Constraints/Language.php +++ b/src/Symfony/Component/Validator/Constraints/Language.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Language extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/LanguageValidator.php b/src/Symfony/Component/Validator/Constraints/LanguageValidator.php index 1c47f1d0d7..ce9ec31556 100644 --- a/src/Symfony/Component/Validator/Constraints/LanguageValidator.php +++ b/src/Symfony/Component/Validator/Constraints/LanguageValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * Validates whether a value is a valid language code. * * @author Bernhard Schussek - * - * @api */ class LanguageValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Length.php b/src/Symfony/Component/Validator/Constraints/Length.php index 49f4890c81..99e7918aa6 100644 --- a/src/Symfony/Component/Validator/Constraints/Length.php +++ b/src/Symfony/Component/Validator/Constraints/Length.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Length extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/Locale.php b/src/Symfony/Component/Validator/Constraints/Locale.php index 12a55464a6..cf30eb2254 100644 --- a/src/Symfony/Component/Validator/Constraints/Locale.php +++ b/src/Symfony/Component/Validator/Constraints/Locale.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Locale extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/LocaleValidator.php b/src/Symfony/Component/Validator/Constraints/LocaleValidator.php index d95866984b..f54ef93565 100644 --- a/src/Symfony/Component/Validator/Constraints/LocaleValidator.php +++ b/src/Symfony/Component/Validator/Constraints/LocaleValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * Validates whether a value is a valid locale code. * * @author Bernhard Schussek - * - * @api */ class LocaleValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/NotBlank.php b/src/Symfony/Component/Validator/Constraints/NotBlank.php index c578c6d81f..750f4120c7 100644 --- a/src/Symfony/Component/Validator/Constraints/NotBlank.php +++ b/src/Symfony/Component/Validator/Constraints/NotBlank.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class NotBlank extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php b/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php index 945803348b..b81f10b09e 100644 --- a/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php +++ b/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class NotBlankValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/NotNull.php b/src/Symfony/Component/Validator/Constraints/NotNull.php index 60416c76ec..57f2492710 100644 --- a/src/Symfony/Component/Validator/Constraints/NotNull.php +++ b/src/Symfony/Component/Validator/Constraints/NotNull.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class NotNull extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/NotNullValidator.php b/src/Symfony/Component/Validator/Constraints/NotNullValidator.php index 254dd00d63..601b35e950 100644 --- a/src/Symfony/Component/Validator/Constraints/NotNullValidator.php +++ b/src/Symfony/Component/Validator/Constraints/NotNullValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class NotNullValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Null.php b/src/Symfony/Component/Validator/Constraints/Null.php index 2be06df0bb..08dca8b092 100644 --- a/src/Symfony/Component/Validator/Constraints/Null.php +++ b/src/Symfony/Component/Validator/Constraints/Null.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Validator\Constraints; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Null extends IsNull { diff --git a/src/Symfony/Component/Validator/Constraints/NullValidator.php b/src/Symfony/Component/Validator/Constraints/NullValidator.php index 9b165eaa80..493241fb9f 100644 --- a/src/Symfony/Component/Validator/Constraints/NullValidator.php +++ b/src/Symfony/Component/Validator/Constraints/NullValidator.php @@ -13,8 +13,6 @@ namespace Symfony\Component\Validator\Constraints; /** * @author Bernhard Schussek - * - * @api */ class NullValidator extends IsNullValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Range.php b/src/Symfony/Component/Validator/Constraints/Range.php index 067ffb8bf3..10c9f0f6a3 100644 --- a/src/Symfony/Component/Validator/Constraints/Range.php +++ b/src/Symfony/Component/Validator/Constraints/Range.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Range extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/Regex.php b/src/Symfony/Component/Validator/Constraints/Regex.php index 212bc42fba..fbdd6a68a6 100644 --- a/src/Symfony/Component/Validator/Constraints/Regex.php +++ b/src/Symfony/Component/Validator/Constraints/Regex.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Regex extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/RegexValidator.php b/src/Symfony/Component/Validator/Constraints/RegexValidator.php index 54aac3b36a..331b4e32c3 100644 --- a/src/Symfony/Component/Validator/Constraints/RegexValidator.php +++ b/src/Symfony/Component/Validator/Constraints/RegexValidator.php @@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; * * @author Bernhard Schussek * @author Joseph Bielawski - * - * @api */ class RegexValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Time.php b/src/Symfony/Component/Validator/Constraints/Time.php index 42ede04325..d5d8aed221 100644 --- a/src/Symfony/Component/Validator/Constraints/Time.php +++ b/src/Symfony/Component/Validator/Constraints/Time.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Time extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/TimeValidator.php b/src/Symfony/Component/Validator/Constraints/TimeValidator.php index a7c2b27ad0..c6fd92231f 100644 --- a/src/Symfony/Component/Validator/Constraints/TimeValidator.php +++ b/src/Symfony/Component/Validator/Constraints/TimeValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class TimeValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/True.php b/src/Symfony/Component/Validator/Constraints/True.php index 626f6d8571..4cc11197fb 100644 --- a/src/Symfony/Component/Validator/Constraints/True.php +++ b/src/Symfony/Component/Validator/Constraints/True.php @@ -16,8 +16,6 @@ namespace Symfony\Component\Validator\Constraints; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class True extends IsTrue { diff --git a/src/Symfony/Component/Validator/Constraints/TrueValidator.php b/src/Symfony/Component/Validator/Constraints/TrueValidator.php index 7ab44ca3c3..d60f67d72a 100644 --- a/src/Symfony/Component/Validator/Constraints/TrueValidator.php +++ b/src/Symfony/Component/Validator/Constraints/TrueValidator.php @@ -13,8 +13,6 @@ namespace Symfony\Component\Validator\Constraints; /** * @author Bernhard Schussek - * - * @api */ class TrueValidator extends IsTrueValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Type.php b/src/Symfony/Component/Validator/Constraints/Type.php index fc4cc72eb6..afe59032bf 100644 --- a/src/Symfony/Component/Validator/Constraints/Type.php +++ b/src/Symfony/Component/Validator/Constraints/Type.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Type extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/TypeValidator.php b/src/Symfony/Component/Validator/Constraints/TypeValidator.php index 979df4ec67..b24fdc493e 100644 --- a/src/Symfony/Component/Validator/Constraints/TypeValidator.php +++ b/src/Symfony/Component/Validator/Constraints/TypeValidator.php @@ -16,8 +16,6 @@ use Symfony\Component\Validator\ConstraintValidator; /** * @author Bernhard Schussek - * - * @api */ class TypeValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Url.php b/src/Symfony/Component/Validator/Constraints/Url.php index e867ee1f0a..81b9ba0a0b 100644 --- a/src/Symfony/Component/Validator/Constraints/Url.php +++ b/src/Symfony/Component/Validator/Constraints/Url.php @@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Url extends Constraint { diff --git a/src/Symfony/Component/Validator/Constraints/UrlValidator.php b/src/Symfony/Component/Validator/Constraints/UrlValidator.php index 1ba47ffd1d..84bc3d1124 100644 --- a/src/Symfony/Component/Validator/Constraints/UrlValidator.php +++ b/src/Symfony/Component/Validator/Constraints/UrlValidator.php @@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException; /** * @author Bernhard Schussek - * - * @api */ class UrlValidator extends ConstraintValidator { diff --git a/src/Symfony/Component/Validator/Constraints/Valid.php b/src/Symfony/Component/Validator/Constraints/Valid.php index 99ec32667f..865ab50326 100644 --- a/src/Symfony/Component/Validator/Constraints/Valid.php +++ b/src/Symfony/Component/Validator/Constraints/Valid.php @@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException; * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek - * - * @api */ class Valid extends Constraint { diff --git a/src/Symfony/Component/Validator/ExecutionContextInterface.php b/src/Symfony/Component/Validator/ExecutionContextInterface.php index 2dd98462a8..910d66f9ab 100644 --- a/src/Symfony/Component/Validator/ExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/ExecutionContextInterface.php @@ -80,8 +80,6 @@ namespace Symfony\Component\Validator; * validator otherwise would not reach. * * @author Bernhard Schussek - * - * @api */ interface ExecutionContextInterface { @@ -93,8 +91,6 @@ interface ExecutionContextInterface * @param mixed $invalidValue The invalid, validated value. * @param int|null $pluralization The number to use to pluralize of the message. * @param int|null $code The violation code. - * - * @api */ public function addViolation($message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null); @@ -108,8 +104,6 @@ interface ExecutionContextInterface * @param mixed $invalidValue The invalid, validated value. * @param int|null $pluralization The number to use to pluralize of the message. * @param int|null $code The violation code. - * - * @api */ public function addViolationAt($subPath, $message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null); @@ -187,8 +181,6 @@ interface ExecutionContextInterface * Returns the violations generated by the validator so far. * * @return ConstraintViolationListInterface The constraint violation list. - * - * @api */ public function getViolations(); diff --git a/src/Symfony/Component/Validator/ObjectInitializerInterface.php b/src/Symfony/Component/Validator/ObjectInitializerInterface.php index 0426bc8c80..dcbc2cd11d 100644 --- a/src/Symfony/Component/Validator/ObjectInitializerInterface.php +++ b/src/Symfony/Component/Validator/ObjectInitializerInterface.php @@ -19,8 +19,6 @@ namespace Symfony\Component\Validator; * * @author Fabien Potencier * @author Bernhard Schussek - * - * @api */ interface ObjectInitializerInterface { @@ -28,8 +26,6 @@ interface ObjectInitializerInterface * Initializes an object just before validation. * * @param object $object The object to validate - * - * @api */ public function initialize($object); } diff --git a/src/Symfony/Component/Validator/ValidatorInterface.php b/src/Symfony/Component/Validator/ValidatorInterface.php index f12f851139..9153e5ba50 100644 --- a/src/Symfony/Component/Validator/ValidatorInterface.php +++ b/src/Symfony/Component/Validator/ValidatorInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Validator; * Validates values and graphs of objects and arrays. * * @author Bernhard Schussek - * - * @api */ interface ValidatorInterface { @@ -33,8 +31,6 @@ interface ValidatorInterface * * @return ConstraintViolationListInterface A list of constraint violations. If the * list is empty, validation succeeded. - * - * @api */ public function validate($value, $groups = null, $traverse = false, $deep = false); @@ -50,8 +46,6 @@ interface ValidatorInterface * * @return ConstraintViolationListInterface A list of constraint violations. If the * list is empty, validation succeeded. - * - * @api */ public function validateProperty($containingValue, $property, $groups = null); @@ -69,8 +63,6 @@ interface ValidatorInterface * * @return ConstraintViolationListInterface A list of constraint violations. If the * list is empty, validation succeeded. - * - * @api */ public function validatePropertyValue($containingValue, $property, $value, $groups = null); @@ -83,8 +75,6 @@ interface ValidatorInterface * * @return ConstraintViolationListInterface A list of constraint violations. If the * list is empty, validation succeeded. - * - * @api */ public function validateValue($value, $constraints, $groups = null); @@ -92,8 +82,6 @@ interface ValidatorInterface * Returns the factory for metadata instances. * * @return MetadataFactoryInterface The metadata factory. - * - * @api */ public function getMetadataFactory(); } diff --git a/src/Symfony/Component/Yaml/Exception/DumpException.php b/src/Symfony/Component/Yaml/Exception/DumpException.php index 9b3e6de079..cce972f246 100644 --- a/src/Symfony/Component/Yaml/Exception/DumpException.php +++ b/src/Symfony/Component/Yaml/Exception/DumpException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Yaml\Exception; * Exception class thrown when an error occurs during dumping. * * @author Fabien Potencier - * - * @api */ class DumpException extends RuntimeException { diff --git a/src/Symfony/Component/Yaml/Exception/ExceptionInterface.php b/src/Symfony/Component/Yaml/Exception/ExceptionInterface.php index 92e5c2ea4e..ad850eea1d 100644 --- a/src/Symfony/Component/Yaml/Exception/ExceptionInterface.php +++ b/src/Symfony/Component/Yaml/Exception/ExceptionInterface.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Yaml\Exception; * Exception interface for all exceptions thrown by the component. * * @author Fabien Potencier - * - * @api */ interface ExceptionInterface { diff --git a/src/Symfony/Component/Yaml/Exception/ParseException.php b/src/Symfony/Component/Yaml/Exception/ParseException.php index 0447dff137..b74eb9132f 100644 --- a/src/Symfony/Component/Yaml/Exception/ParseException.php +++ b/src/Symfony/Component/Yaml/Exception/ParseException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Yaml\Exception; * Exception class thrown when an error occurs during parsing. * * @author Fabien Potencier - * - * @api */ class ParseException extends RuntimeException { diff --git a/src/Symfony/Component/Yaml/Exception/RuntimeException.php b/src/Symfony/Component/Yaml/Exception/RuntimeException.php index 3573bf15ab..3f36b73bec 100644 --- a/src/Symfony/Component/Yaml/Exception/RuntimeException.php +++ b/src/Symfony/Component/Yaml/Exception/RuntimeException.php @@ -15,8 +15,6 @@ namespace Symfony\Component\Yaml\Exception; * Exception class thrown when an error occurs during parsing. * * @author Romain Neutron - * - * @api */ class RuntimeException extends \RuntimeException implements ExceptionInterface { diff --git a/src/Symfony/Component/Yaml/Yaml.php b/src/Symfony/Component/Yaml/Yaml.php index 419226a2dd..cce18a657a 100644 --- a/src/Symfony/Component/Yaml/Yaml.php +++ b/src/Symfony/Component/Yaml/Yaml.php @@ -17,8 +17,6 @@ use Symfony\Component\Yaml\Exception\ParseException; * Yaml offers convenience methods to load and dump YAML. * * @author Fabien Potencier - * - * @api */ class Yaml { @@ -45,8 +43,6 @@ class Yaml * @return array The YAML converted to a PHP array * * @throws ParseException If the YAML is not valid - * - * @api */ public static function parse($input, $exceptionOnInvalidType = false, $objectSupport = false) { @@ -87,8 +83,6 @@ class Yaml * @param bool $objectSupport true if object support is enabled, false otherwise * * @return string A YAML string representing the original PHP array - * - * @api */ public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvalidType = false, $objectSupport = false) {