minor #15979 remove api tags from code (Tobion)
This PR was merged into the 2.3 branch.
Discussion
----------
remove api tags from code
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #15977
| License | MIT
| Doc PR | n/a
Commits
-------
f1c7c65
remove api tags from code
This commit is contained in:
commit
e1ede46b7d
@ -25,8 +25,6 @@ use Symfony\Component\Process\PhpProcess;
|
|||||||
* you need to also implement the getScript() method.
|
* you need to also implement the getScript() method.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
abstract class Client
|
abstract class Client
|
||||||
{
|
{
|
||||||
@ -52,8 +50,6 @@ abstract class Client
|
|||||||
* @param array $server The server parameters (equivalent of $_SERVER)
|
* @param array $server The server parameters (equivalent of $_SERVER)
|
||||||
* @param History $history A History instance to store the browser history
|
* @param History $history A History instance to store the browser history
|
||||||
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
|
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
|
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.
|
* Sets whether to automatically follow redirects or not.
|
||||||
*
|
*
|
||||||
* @param bool $followRedirect Whether to follow redirects
|
* @param bool $followRedirect Whether to follow redirects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function followRedirects($followRedirect = true)
|
public function followRedirects($followRedirect = true)
|
||||||
{
|
{
|
||||||
@ -96,8 +90,6 @@ abstract class Client
|
|||||||
* @param bool $insulated Whether to insulate the requests or not
|
* @param bool $insulated Whether to insulate the requests or not
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException When Symfony Process Component is not installed
|
* @throws \RuntimeException When Symfony Process Component is not installed
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function insulate($insulated = true)
|
public function insulate($insulated = true)
|
||||||
{
|
{
|
||||||
@ -114,8 +106,6 @@ abstract class Client
|
|||||||
* Sets server parameters.
|
* Sets server parameters.
|
||||||
*
|
*
|
||||||
* @param array $server An array of server parameters
|
* @param array $server An array of server parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setServerParameters(array $server)
|
public function setServerParameters(array $server)
|
||||||
{
|
{
|
||||||
@ -153,8 +143,6 @@ abstract class Client
|
|||||||
* Returns the History instance.
|
* Returns the History instance.
|
||||||
*
|
*
|
||||||
* @return History A History instance
|
* @return History A History instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHistory()
|
public function getHistory()
|
||||||
{
|
{
|
||||||
@ -165,8 +153,6 @@ abstract class Client
|
|||||||
* Returns the CookieJar instance.
|
* Returns the CookieJar instance.
|
||||||
*
|
*
|
||||||
* @return CookieJar A CookieJar instance
|
* @return CookieJar A CookieJar instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCookieJar()
|
public function getCookieJar()
|
||||||
{
|
{
|
||||||
@ -177,8 +163,6 @@ abstract class Client
|
|||||||
* Returns the current Crawler instance.
|
* Returns the current Crawler instance.
|
||||||
*
|
*
|
||||||
* @return Crawler|null A Crawler instance
|
* @return Crawler|null A Crawler instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCrawler()
|
public function getCrawler()
|
||||||
{
|
{
|
||||||
@ -189,8 +173,6 @@ abstract class Client
|
|||||||
* Returns the current BrowserKit Response instance.
|
* Returns the current BrowserKit Response instance.
|
||||||
*
|
*
|
||||||
* @return Response|null A BrowserKit Response instance
|
* @return Response|null A BrowserKit Response instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getInternalResponse()
|
public function getInternalResponse()
|
||||||
{
|
{
|
||||||
@ -206,8 +188,6 @@ abstract class Client
|
|||||||
* @return object|null A response instance
|
* @return object|null A response instance
|
||||||
*
|
*
|
||||||
* @see doRequest()
|
* @see doRequest()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getResponse()
|
public function getResponse()
|
||||||
{
|
{
|
||||||
@ -218,8 +198,6 @@ abstract class Client
|
|||||||
* Returns the current BrowserKit Request instance.
|
* Returns the current BrowserKit Request instance.
|
||||||
*
|
*
|
||||||
* @return Request|null A BrowserKit Request instance
|
* @return Request|null A BrowserKit Request instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getInternalRequest()
|
public function getInternalRequest()
|
||||||
{
|
{
|
||||||
@ -235,8 +213,6 @@ abstract class Client
|
|||||||
* @return object|null A Request instance
|
* @return object|null A Request instance
|
||||||
*
|
*
|
||||||
* @see doRequest()
|
* @see doRequest()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
{
|
{
|
||||||
@ -249,8 +225,6 @@ abstract class Client
|
|||||||
* @param Link $link A Link instance
|
* @param Link $link A Link instance
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function click(Link $link)
|
public function click(Link $link)
|
||||||
{
|
{
|
||||||
@ -268,8 +242,6 @@ abstract class Client
|
|||||||
* @param array $values An array of form field values
|
* @param array $values An array of form field values
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function submit(Form $form, array $values = array())
|
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())
|
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function request($method, $uri, array $parameters = array(), array $files = array(), array $server = array(), $content = null, $changeHistory = true)
|
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.
|
* Goes back in the browser history.
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function back()
|
public function back()
|
||||||
{
|
{
|
||||||
@ -461,8 +429,6 @@ abstract class Client
|
|||||||
* Goes forward in the browser history.
|
* Goes forward in the browser history.
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function forward()
|
public function forward()
|
||||||
{
|
{
|
||||||
@ -473,8 +439,6 @@ abstract class Client
|
|||||||
* Reloads the current browser.
|
* Reloads the current browser.
|
||||||
*
|
*
|
||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function reload()
|
public function reload()
|
||||||
{
|
{
|
||||||
@ -487,8 +451,6 @@ abstract class Client
|
|||||||
* @return Crawler
|
* @return Crawler
|
||||||
*
|
*
|
||||||
* @throws \LogicException If request was not a redirect
|
* @throws \LogicException If request was not a redirect
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function followRedirect()
|
public function followRedirect()
|
||||||
{
|
{
|
||||||
@ -537,8 +499,6 @@ abstract class Client
|
|||||||
* Restarts the client.
|
* Restarts the client.
|
||||||
*
|
*
|
||||||
* It flushes history and all cookies.
|
* It flushes history and all cookies.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function restart()
|
public function restart()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
|
|||||||
* Cookie represents an HTTP cookie.
|
* Cookie represents an HTTP cookie.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Cookie
|
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 $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 $httponly The cookie httponly flag
|
||||||
* @param bool $encodedValue Whether the value is encoded or not
|
* @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)
|
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
|
* @return string The HTTP representation of the Cookie
|
||||||
*
|
*
|
||||||
* @throws \UnexpectedValueException
|
* @throws \UnexpectedValueException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
@ -130,8 +124,6 @@ class Cookie
|
|||||||
* @return Cookie A Cookie instance
|
* @return Cookie A Cookie instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function fromString($cookie, $url = null)
|
public static function fromString($cookie, $url = null)
|
||||||
{
|
{
|
||||||
@ -229,8 +221,6 @@ class Cookie
|
|||||||
* Gets the name of the cookie.
|
* Gets the name of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie name
|
* @return string The cookie name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@ -241,8 +231,6 @@ class Cookie
|
|||||||
* Gets the value of the cookie.
|
* Gets the value of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie value
|
* @return string The cookie value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getValue()
|
public function getValue()
|
||||||
{
|
{
|
||||||
@ -253,8 +241,6 @@ class Cookie
|
|||||||
* Gets the raw value of the cookie.
|
* Gets the raw value of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie value
|
* @return string The cookie value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRawValue()
|
public function getRawValue()
|
||||||
{
|
{
|
||||||
@ -265,8 +251,6 @@ class Cookie
|
|||||||
* Gets the expires time of the cookie.
|
* Gets the expires time of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie expires time
|
* @return string The cookie expires time
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExpiresTime()
|
public function getExpiresTime()
|
||||||
{
|
{
|
||||||
@ -277,8 +261,6 @@ class Cookie
|
|||||||
* Gets the path of the cookie.
|
* Gets the path of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie path
|
* @return string The cookie path
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPath()
|
public function getPath()
|
||||||
{
|
{
|
||||||
@ -289,8 +271,6 @@ class Cookie
|
|||||||
* Gets the domain of the cookie.
|
* Gets the domain of the cookie.
|
||||||
*
|
*
|
||||||
* @return string The cookie domain
|
* @return string The cookie domain
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDomain()
|
public function getDomain()
|
||||||
{
|
{
|
||||||
@ -301,8 +281,6 @@ class Cookie
|
|||||||
* Returns the secure flag of the cookie.
|
* Returns the secure flag of the cookie.
|
||||||
*
|
*
|
||||||
* @return bool The cookie secure flag
|
* @return bool The cookie secure flag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSecure()
|
public function isSecure()
|
||||||
{
|
{
|
||||||
@ -313,8 +291,6 @@ class Cookie
|
|||||||
* Returns the httponly flag of the cookie.
|
* Returns the httponly flag of the cookie.
|
||||||
*
|
*
|
||||||
* @return bool The cookie httponly flag
|
* @return bool The cookie httponly flag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isHttpOnly()
|
public function isHttpOnly()
|
||||||
{
|
{
|
||||||
@ -325,8 +301,6 @@ class Cookie
|
|||||||
* Returns true if the cookie has expired.
|
* Returns true if the cookie has expired.
|
||||||
*
|
*
|
||||||
* @return bool true if the cookie has expired, false otherwise
|
* @return bool true if the cookie has expired, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isExpired()
|
public function isExpired()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
|
|||||||
* CookieJar.
|
* CookieJar.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class CookieJar
|
class CookieJar
|
||||||
{
|
{
|
||||||
@ -26,8 +24,6 @@ class CookieJar
|
|||||||
* Sets a cookie.
|
* Sets a cookie.
|
||||||
*
|
*
|
||||||
* @param Cookie $cookie A Cookie instance
|
* @param Cookie $cookie A Cookie instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set(Cookie $cookie)
|
public function set(Cookie $cookie)
|
||||||
{
|
{
|
||||||
@ -47,8 +43,6 @@ class CookieJar
|
|||||||
* @param string $domain The cookie domain
|
* @param string $domain The cookie domain
|
||||||
*
|
*
|
||||||
* @return Cookie|null A Cookie instance or null if the cookie does not exist
|
* @return Cookie|null A Cookie instance or null if the cookie does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name, $path = '/', $domain = null)
|
public function get($name, $path = '/', $domain = null)
|
||||||
{
|
{
|
||||||
@ -94,8 +88,6 @@ class CookieJar
|
|||||||
* @param string $name The cookie name
|
* @param string $name The cookie name
|
||||||
* @param string $path The cookie path
|
* @param string $path The cookie path
|
||||||
* @param string $domain The cookie domain
|
* @param string $domain The cookie domain
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function expire($name, $path = '/', $domain = null)
|
public function expire($name, $path = '/', $domain = null)
|
||||||
{
|
{
|
||||||
@ -126,8 +118,6 @@ class CookieJar
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all the cookies from the jar.
|
* Removes all the cookies from the jar.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
|
|||||||
* Request object.
|
* Request object.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Request
|
class Request
|
||||||
{
|
{
|
||||||
@ -38,8 +36,6 @@ class Request
|
|||||||
* @param array $cookies An array of cookies
|
* @param array $cookies An array of cookies
|
||||||
* @param array $server An array of server parameters
|
* @param array $server An array of server parameters
|
||||||
* @param string $content The raw body data
|
* @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)
|
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.
|
* Gets the request URI.
|
||||||
*
|
*
|
||||||
* @return string The request URI
|
* @return string The request URI
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getUri()
|
public function getUri()
|
||||||
{
|
{
|
||||||
@ -68,8 +62,6 @@ class Request
|
|||||||
* Gets the request HTTP method.
|
* Gets the request HTTP method.
|
||||||
*
|
*
|
||||||
* @return string The request HTTP method
|
* @return string The request HTTP method
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMethod()
|
public function getMethod()
|
||||||
{
|
{
|
||||||
@ -80,8 +72,6 @@ class Request
|
|||||||
* Gets the request parameters.
|
* Gets the request parameters.
|
||||||
*
|
*
|
||||||
* @return array The request parameters
|
* @return array The request parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParameters()
|
public function getParameters()
|
||||||
{
|
{
|
||||||
@ -92,8 +82,6 @@ class Request
|
|||||||
* Gets the request server files.
|
* Gets the request server files.
|
||||||
*
|
*
|
||||||
* @return array The request files
|
* @return array The request files
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFiles()
|
public function getFiles()
|
||||||
{
|
{
|
||||||
@ -104,8 +92,6 @@ class Request
|
|||||||
* Gets the request cookies.
|
* Gets the request cookies.
|
||||||
*
|
*
|
||||||
* @return array The request cookies
|
* @return array The request cookies
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCookies()
|
public function getCookies()
|
||||||
{
|
{
|
||||||
@ -116,8 +102,6 @@ class Request
|
|||||||
* Gets the request server parameters.
|
* Gets the request server parameters.
|
||||||
*
|
*
|
||||||
* @return array The request server parameters
|
* @return array The request server parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getServer()
|
public function getServer()
|
||||||
{
|
{
|
||||||
@ -128,8 +112,6 @@ class Request
|
|||||||
* Gets the request raw body data.
|
* Gets the request raw body data.
|
||||||
*
|
*
|
||||||
* @return string The request raw body data.
|
* @return string The request raw body data.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContent()
|
public function getContent()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
|
|||||||
* Response object.
|
* Response object.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Response
|
class Response
|
||||||
{
|
{
|
||||||
@ -33,8 +31,6 @@ class Response
|
|||||||
* @param string $content The content of the response
|
* @param string $content The content of the response
|
||||||
* @param int $status The response status code
|
* @param int $status The response status code
|
||||||
* @param array $headers An array of headers
|
* @param array $headers An array of headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($content = '', $status = 200, array $headers = array())
|
public function __construct($content = '', $status = 200, array $headers = array())
|
||||||
{
|
{
|
||||||
@ -81,8 +77,6 @@ class Response
|
|||||||
* Gets the response content.
|
* Gets the response content.
|
||||||
*
|
*
|
||||||
* @return string The response content
|
* @return string The response content
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContent()
|
public function getContent()
|
||||||
{
|
{
|
||||||
@ -93,8 +87,6 @@ class Response
|
|||||||
* Gets the response status code.
|
* Gets the response status code.
|
||||||
*
|
*
|
||||||
* @return int The response status code
|
* @return int The response status code
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getStatus()
|
public function getStatus()
|
||||||
{
|
{
|
||||||
@ -105,8 +97,6 @@ class Response
|
|||||||
* Gets the response headers.
|
* Gets the response headers.
|
||||||
*
|
*
|
||||||
* @return array The response headers
|
* @return array The response headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHeaders()
|
public function getHeaders()
|
||||||
{
|
{
|
||||||
|
@ -44,8 +44,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ApcClassLoader
|
class ApcClassLoader
|
||||||
{
|
{
|
||||||
@ -66,8 +64,6 @@ class ApcClassLoader
|
|||||||
*
|
*
|
||||||
* @throws \RuntimeException
|
* @throws \RuntimeException
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($prefix, $decorated)
|
public function __construct($prefix, $decorated)
|
||||||
{
|
{
|
||||||
|
@ -57,8 +57,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ApcUniversalClassLoader extends UniversalClassLoader
|
class ApcUniversalClassLoader extends UniversalClassLoader
|
||||||
{
|
{
|
||||||
@ -70,8 +68,6 @@ class ApcUniversalClassLoader extends UniversalClassLoader
|
|||||||
* @param string $prefix A prefix to create a namespace in APC
|
* @param string $prefix A prefix to create a namespace in APC
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException
|
* @throws \RuntimeException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($prefix)
|
public function __construct($prefix)
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Christophe Coevoet <stof@notk.org>
|
* @author Christophe Coevoet <stof@notk.org>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class DebugClassLoader
|
class DebugClassLoader
|
||||||
{
|
{
|
||||||
@ -31,8 +29,6 @@ class DebugClassLoader
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param object $classFinder
|
* @param object $classFinder
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($classFinder)
|
public function __construct($classFinder)
|
||||||
{
|
{
|
||||||
|
@ -55,8 +55,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
* found before giving up.
|
* found before giving up.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class UniversalClassLoader
|
class UniversalClassLoader
|
||||||
{
|
{
|
||||||
@ -132,8 +130,6 @@ class UniversalClassLoader
|
|||||||
* Registers the directory to use as a fallback for namespaces.
|
* Registers the directory to use as a fallback for namespaces.
|
||||||
*
|
*
|
||||||
* @param array $dirs An array of directories
|
* @param array $dirs An array of directories
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerNamespaceFallbacks(array $dirs)
|
public function registerNamespaceFallbacks(array $dirs)
|
||||||
{
|
{
|
||||||
@ -154,8 +150,6 @@ class UniversalClassLoader
|
|||||||
* Registers directories to use as a fallback for class prefixes.
|
* Registers directories to use as a fallback for class prefixes.
|
||||||
*
|
*
|
||||||
* @param array $dirs An array of directories
|
* @param array $dirs An array of directories
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerPrefixFallbacks(array $dirs)
|
public function registerPrefixFallbacks(array $dirs)
|
||||||
{
|
{
|
||||||
@ -176,8 +170,6 @@ class UniversalClassLoader
|
|||||||
* Registers an array of namespaces.
|
* Registers an array of namespaces.
|
||||||
*
|
*
|
||||||
* @param array $namespaces An array of namespaces (namespaces as keys and locations as values)
|
* @param array $namespaces An array of namespaces (namespaces as keys and locations as values)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerNamespaces(array $namespaces)
|
public function registerNamespaces(array $namespaces)
|
||||||
{
|
{
|
||||||
@ -191,8 +183,6 @@ class UniversalClassLoader
|
|||||||
*
|
*
|
||||||
* @param string $namespace The namespace
|
* @param string $namespace The namespace
|
||||||
* @param array|string $paths The location(s) of the namespace
|
* @param array|string $paths The location(s) of the namespace
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerNamespace($namespace, $paths)
|
public function registerNamespace($namespace, $paths)
|
||||||
{
|
{
|
||||||
@ -203,8 +193,6 @@ class UniversalClassLoader
|
|||||||
* Registers an array of classes using the PEAR naming convention.
|
* Registers an array of classes using the PEAR naming convention.
|
||||||
*
|
*
|
||||||
* @param array $classes An array of classes (prefixes as keys and locations as values)
|
* @param array $classes An array of classes (prefixes as keys and locations as values)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerPrefixes(array $classes)
|
public function registerPrefixes(array $classes)
|
||||||
{
|
{
|
||||||
@ -218,8 +206,6 @@ class UniversalClassLoader
|
|||||||
*
|
*
|
||||||
* @param string $prefix The classes prefix
|
* @param string $prefix The classes prefix
|
||||||
* @param array|string $paths The location(s) of the classes
|
* @param array|string $paths The location(s) of the classes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerPrefix($prefix, $paths)
|
public function registerPrefix($prefix, $paths)
|
||||||
{
|
{
|
||||||
@ -230,8 +216,6 @@ class UniversalClassLoader
|
|||||||
* Registers this instance as an autoloader.
|
* Registers this instance as an autoloader.
|
||||||
*
|
*
|
||||||
* @param bool $prepend Whether to prepend the autoloader or not
|
* @param bool $prepend Whether to prepend the autoloader or not
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function register($prepend = false)
|
public function register($prepend = false)
|
||||||
{
|
{
|
||||||
|
@ -45,8 +45,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
* @author Kim Hemsø Rasmussen <kimhemsoe@gmail.com>
|
* @author Kim Hemsø Rasmussen <kimhemsoe@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class XcacheClassLoader
|
class XcacheClassLoader
|
||||||
{
|
{
|
||||||
@ -67,8 +65,6 @@ class XcacheClassLoader
|
|||||||
*
|
*
|
||||||
* @throws \RuntimeException
|
* @throws \RuntimeException
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($prefix, $decorated)
|
public function __construct($prefix, $decorated)
|
||||||
{
|
{
|
||||||
|
@ -49,8 +49,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|||||||
* $app->run();
|
* $app->run();
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Application
|
class Application
|
||||||
{
|
{
|
||||||
@ -70,8 +68,6 @@ class Application
|
|||||||
*
|
*
|
||||||
* @param string $name The name of the application
|
* @param string $name The name of the application
|
||||||
* @param string $version The version of the application
|
* @param string $version The version of the application
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
|
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
|
||||||
{
|
{
|
||||||
@ -102,8 +98,6 @@ class Application
|
|||||||
* @return int 0 if everything went fine, or an error code
|
* @return int 0 if everything went fine, or an error code
|
||||||
*
|
*
|
||||||
* @throws \Exception When doRun returns Exception
|
* @throws \Exception When doRun returns Exception
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function run(InputInterface $input = null, OutputInterface $output = null)
|
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.
|
* Set a helper set to be used with the command.
|
||||||
*
|
*
|
||||||
* @param HelperSet $helperSet The helper set
|
* @param HelperSet $helperSet The helper set
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setHelperSet(HelperSet $helperSet)
|
public function setHelperSet(HelperSet $helperSet)
|
||||||
{
|
{
|
||||||
@ -210,8 +202,6 @@ class Application
|
|||||||
* Get the helper set associated with the command.
|
* Get the helper set associated with the command.
|
||||||
*
|
*
|
||||||
* @return HelperSet The HelperSet instance associated with this command
|
* @return HelperSet The HelperSet instance associated with this command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHelperSet()
|
public function getHelperSet()
|
||||||
{
|
{
|
||||||
@ -222,8 +212,6 @@ class Application
|
|||||||
* Set an input definition set to be used with this application.
|
* Set an input definition set to be used with this application.
|
||||||
*
|
*
|
||||||
* @param InputDefinition $definition The input definition
|
* @param InputDefinition $definition The input definition
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefinition(InputDefinition $definition)
|
public function setDefinition(InputDefinition $definition)
|
||||||
{
|
{
|
||||||
@ -271,8 +259,6 @@ class Application
|
|||||||
* Sets whether to catch exceptions or not during commands execution.
|
* Sets whether to catch exceptions or not during commands execution.
|
||||||
*
|
*
|
||||||
* @param bool $boolean 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)
|
public function setCatchExceptions($boolean)
|
||||||
{
|
{
|
||||||
@ -283,8 +269,6 @@ class Application
|
|||||||
* Sets whether to automatically exit after a command execution or not.
|
* Sets whether to automatically exit after a command execution or not.
|
||||||
*
|
*
|
||||||
* @param bool $boolean 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)
|
public function setAutoExit($boolean)
|
||||||
{
|
{
|
||||||
@ -295,8 +279,6 @@ class Application
|
|||||||
* Gets the name of the application.
|
* Gets the name of the application.
|
||||||
*
|
*
|
||||||
* @return string The application name
|
* @return string The application name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@ -307,8 +289,6 @@ class Application
|
|||||||
* Sets the application name.
|
* Sets the application name.
|
||||||
*
|
*
|
||||||
* @param string $name The application name
|
* @param string $name The application name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setName($name)
|
public function setName($name)
|
||||||
{
|
{
|
||||||
@ -319,8 +299,6 @@ class Application
|
|||||||
* Gets the application version.
|
* Gets the application version.
|
||||||
*
|
*
|
||||||
* @return string The application version
|
* @return string The application version
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getVersion()
|
public function getVersion()
|
||||||
{
|
{
|
||||||
@ -331,8 +309,6 @@ class Application
|
|||||||
* Sets the application version.
|
* Sets the application version.
|
||||||
*
|
*
|
||||||
* @param string $version The application version
|
* @param string $version The application version
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setVersion($version)
|
public function setVersion($version)
|
||||||
{
|
{
|
||||||
@ -343,8 +319,6 @@ class Application
|
|||||||
* Returns the long version of the application.
|
* Returns the long version of the application.
|
||||||
*
|
*
|
||||||
* @return string The long application version
|
* @return string The long application version
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getLongVersion()
|
public function getLongVersion()
|
||||||
{
|
{
|
||||||
@ -361,8 +335,6 @@ class Application
|
|||||||
* @param string $name The command name
|
* @param string $name The command name
|
||||||
*
|
*
|
||||||
* @return Command The newly created command
|
* @return Command The newly created command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function register($name)
|
public function register($name)
|
||||||
{
|
{
|
||||||
@ -373,8 +345,6 @@ class Application
|
|||||||
* Adds an array of command objects.
|
* Adds an array of command objects.
|
||||||
*
|
*
|
||||||
* @param Command[] $commands An array of commands
|
* @param Command[] $commands An array of commands
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addCommands(array $commands)
|
public function addCommands(array $commands)
|
||||||
{
|
{
|
||||||
@ -391,8 +361,6 @@ class Application
|
|||||||
* @param Command $command A Command object
|
* @param Command $command A Command object
|
||||||
*
|
*
|
||||||
* @return Command The registered command
|
* @return Command The registered command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(Command $command)
|
public function add(Command $command)
|
||||||
{
|
{
|
||||||
@ -421,8 +389,6 @@ class Application
|
|||||||
* @return Command A Command object
|
* @return Command A Command object
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When command name given does not exist
|
* @throws \InvalidArgumentException When command name given does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name)
|
public function get($name)
|
||||||
{
|
{
|
||||||
@ -450,8 +416,6 @@ class Application
|
|||||||
* @param string $name The command name or alias
|
* @param string $name The command name or alias
|
||||||
*
|
*
|
||||||
* @return bool true if the command exists, false otherwise
|
* @return bool true if the command exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($name)
|
public function has($name)
|
||||||
{
|
{
|
||||||
@ -549,8 +513,6 @@ class Application
|
|||||||
* @return Command A Command instance
|
* @return Command A Command instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When command name is incorrect or ambiguous
|
* @throws \InvalidArgumentException When command name is incorrect or ambiguous
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function find($name)
|
public function find($name)
|
||||||
{
|
{
|
||||||
@ -632,8 +594,6 @@ class Application
|
|||||||
* @param string $namespace A namespace name
|
* @param string $namespace A namespace name
|
||||||
*
|
*
|
||||||
* @return Command[] An array of Command instances
|
* @return Command[] An array of Command instances
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all($namespace = null)
|
public function all($namespace = null)
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\Console\Helper\HelperSet;
|
|||||||
* Base class for all commands.
|
* Base class for all commands.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Command
|
class Command
|
||||||
{
|
{
|
||||||
@ -49,8 +47,6 @@ class Command
|
|||||||
* @param string $name The name of the command
|
* @param string $name The name of the command
|
||||||
*
|
*
|
||||||
* @throws \LogicException When the command name is empty
|
* @throws \LogicException When the command name is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($name = null)
|
public function __construct($name = null)
|
||||||
{
|
{
|
||||||
@ -85,8 +81,6 @@ class Command
|
|||||||
* Sets the application instance for this command.
|
* Sets the application instance for this command.
|
||||||
*
|
*
|
||||||
* @param Application $application An Application instance
|
* @param Application $application An Application instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setApplication(Application $application = null)
|
public function setApplication(Application $application = null)
|
||||||
{
|
{
|
||||||
@ -122,8 +116,6 @@ class Command
|
|||||||
* Gets the application instance for this command.
|
* Gets the application instance for this command.
|
||||||
*
|
*
|
||||||
* @return Application An Application instance
|
* @return Application An Application instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getApplication()
|
public function getApplication()
|
||||||
{
|
{
|
||||||
@ -215,8 +207,6 @@ class Command
|
|||||||
*
|
*
|
||||||
* @see setCode()
|
* @see setCode()
|
||||||
* @see execute()
|
* @see execute()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function run(InputInterface $input, OutputInterface $output)
|
public function run(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
@ -272,8 +262,6 @@ class Command
|
|||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @see execute()
|
* @see execute()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setCode($code)
|
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
|
* @param array|InputDefinition $definition An array of argument and option instances or a definition instance
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefinition($definition)
|
public function setDefinition($definition)
|
||||||
{
|
{
|
||||||
@ -339,8 +325,6 @@ class Command
|
|||||||
* Gets the InputDefinition attached to this Command.
|
* Gets the InputDefinition attached to this Command.
|
||||||
*
|
*
|
||||||
* @return InputDefinition An InputDefinition instance
|
* @return InputDefinition An InputDefinition instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDefinition()
|
public function getDefinition()
|
||||||
{
|
{
|
||||||
@ -371,8 +355,6 @@ class Command
|
|||||||
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
|
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addArgument($name, $mode = null, $description = '', $default = null)
|
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)
|
* @param mixed $default The default value (must be null for InputOption::VALUE_REQUIRED or InputOption::VALUE_NONE)
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null)
|
public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null)
|
||||||
{
|
{
|
||||||
@ -414,8 +394,6 @@ class Command
|
|||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When command name given is empty
|
* @throws \InvalidArgumentException When command name given is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setName($name)
|
public function setName($name)
|
||||||
{
|
{
|
||||||
@ -430,8 +408,6 @@ class Command
|
|||||||
* Returns the command name.
|
* Returns the command name.
|
||||||
*
|
*
|
||||||
* @return string The command name
|
* @return string The command name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@ -444,8 +420,6 @@ class Command
|
|||||||
* @param string $description The description for the command
|
* @param string $description The description for the command
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDescription($description)
|
public function setDescription($description)
|
||||||
{
|
{
|
||||||
@ -458,8 +432,6 @@ class Command
|
|||||||
* Returns the description for the command.
|
* Returns the description for the command.
|
||||||
*
|
*
|
||||||
* @return string The description for the command
|
* @return string The description for the command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
{
|
{
|
||||||
@ -472,8 +444,6 @@ class Command
|
|||||||
* @param string $help The help for the command
|
* @param string $help The help for the command
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setHelp($help)
|
public function setHelp($help)
|
||||||
{
|
{
|
||||||
@ -486,8 +456,6 @@ class Command
|
|||||||
* Returns the help for the command.
|
* Returns the help for the command.
|
||||||
*
|
*
|
||||||
* @return string The help for the command
|
* @return string The help for the command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHelp()
|
public function getHelp()
|
||||||
{
|
{
|
||||||
@ -522,8 +490,6 @@ class Command
|
|||||||
* @param string[] $aliases An array of aliases for the command
|
* @param string[] $aliases An array of aliases for the command
|
||||||
*
|
*
|
||||||
* @return Command The current instance
|
* @return Command The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setAliases($aliases)
|
public function setAliases($aliases)
|
||||||
{
|
{
|
||||||
@ -544,8 +510,6 @@ class Command
|
|||||||
* Returns the aliases for the command.
|
* Returns the aliases for the command.
|
||||||
*
|
*
|
||||||
* @return array An array of aliases for the command
|
* @return array An array of aliases for the command
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAliases()
|
public function getAliases()
|
||||||
{
|
{
|
||||||
@ -574,8 +538,6 @@ class Command
|
|||||||
* @return mixed The helper value
|
* @return mixed The helper value
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException if the helper is not defined
|
* @throws \InvalidArgumentException if the helper is not defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHelper($name)
|
public function getHelper($name)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter;
|
|||||||
* Formatter class for console output.
|
* Formatter class for console output.
|
||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class OutputFormatter implements OutputFormatterInterface
|
class OutputFormatter implements OutputFormatterInterface
|
||||||
{
|
{
|
||||||
@ -41,8 +39,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param bool $decorated Whether this formatter should actually decorate strings
|
* @param bool $decorated Whether this formatter should actually decorate strings
|
||||||
* @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances
|
* @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($decorated = false, array $styles = array())
|
public function __construct($decorated = false, array $styles = array())
|
||||||
{
|
{
|
||||||
@ -64,8 +60,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
* Sets the decorated flag.
|
* Sets the decorated flag.
|
||||||
*
|
*
|
||||||
* @param bool $decorated Whether to decorate the messages or not
|
* @param bool $decorated Whether to decorate the messages or not
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDecorated($decorated)
|
public function setDecorated($decorated)
|
||||||
{
|
{
|
||||||
@ -76,8 +70,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
* Gets the decorated flag.
|
* Gets the decorated flag.
|
||||||
*
|
*
|
||||||
* @return bool true if the output will decorate messages, false otherwise
|
* @return bool true if the output will decorate messages, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isDecorated()
|
public function isDecorated()
|
||||||
{
|
{
|
||||||
@ -89,8 +81,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The style name
|
* @param string $name The style name
|
||||||
* @param OutputFormatterStyleInterface $style The style instance
|
* @param OutputFormatterStyleInterface $style The style instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setStyle($name, OutputFormatterStyleInterface $style)
|
public function setStyle($name, OutputFormatterStyleInterface $style)
|
||||||
{
|
{
|
||||||
@ -103,8 +93,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasStyle($name)
|
public function hasStyle($name)
|
||||||
{
|
{
|
||||||
@ -119,8 +107,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
* @return OutputFormatterStyleInterface
|
* @return OutputFormatterStyleInterface
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When style isn't defined
|
* @throws \InvalidArgumentException When style isn't defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getStyle($name)
|
public function getStyle($name)
|
||||||
{
|
{
|
||||||
@ -137,8 +123,6 @@ class OutputFormatter implements OutputFormatterInterface
|
|||||||
* @param string $message The message to style
|
* @param string $message The message to style
|
||||||
*
|
*
|
||||||
* @return string The styled message
|
* @return string The styled message
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function format($message)
|
public function format($message)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter;
|
|||||||
* Formatter interface for console output.
|
* Formatter interface for console output.
|
||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface OutputFormatterInterface
|
interface OutputFormatterInterface
|
||||||
{
|
{
|
||||||
@ -24,8 +22,6 @@ interface OutputFormatterInterface
|
|||||||
* Sets the decorated flag.
|
* Sets the decorated flag.
|
||||||
*
|
*
|
||||||
* @param bool $decorated Whether to decorate the messages or not
|
* @param bool $decorated Whether to decorate the messages or not
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDecorated($decorated);
|
public function setDecorated($decorated);
|
||||||
|
|
||||||
@ -33,8 +29,6 @@ interface OutputFormatterInterface
|
|||||||
* Gets the decorated flag.
|
* Gets the decorated flag.
|
||||||
*
|
*
|
||||||
* @return bool true if the output will decorate messages, false otherwise
|
* @return bool true if the output will decorate messages, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isDecorated();
|
public function isDecorated();
|
||||||
|
|
||||||
@ -43,8 +37,6 @@ interface OutputFormatterInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The style name
|
* @param string $name The style name
|
||||||
* @param OutputFormatterStyleInterface $style The style instance
|
* @param OutputFormatterStyleInterface $style The style instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setStyle($name, OutputFormatterStyleInterface $style);
|
public function setStyle($name, OutputFormatterStyleInterface $style);
|
||||||
|
|
||||||
@ -54,8 +46,6 @@ interface OutputFormatterInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasStyle($name);
|
public function hasStyle($name);
|
||||||
|
|
||||||
@ -65,8 +55,6 @@ interface OutputFormatterInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return OutputFormatterStyleInterface
|
* @return OutputFormatterStyleInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getStyle($name);
|
public function getStyle($name);
|
||||||
|
|
||||||
@ -76,8 +64,6 @@ interface OutputFormatterInterface
|
|||||||
* @param string $message The message to style
|
* @param string $message The message to style
|
||||||
*
|
*
|
||||||
* @return string The styled message
|
* @return string The styled message
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function format($message);
|
public function format($message);
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter;
|
|||||||
* Formatter style class for defining styles.
|
* Formatter style class for defining styles.
|
||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class OutputFormatterStyle implements OutputFormatterStyleInterface
|
class OutputFormatterStyle implements OutputFormatterStyleInterface
|
||||||
{
|
{
|
||||||
@ -60,8 +58,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
|
|||||||
* @param string|null $foreground The style foreground color name
|
* @param string|null $foreground The style foreground color name
|
||||||
* @param string|null $background The style background color name
|
* @param string|null $background The style background color name
|
||||||
* @param array $options The style options
|
* @param array $options The style options
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($foreground = null, $background = null, array $options = array())
|
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
|
* @param string|null $color The color name
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When the color name isn't defined
|
* @throws \InvalidArgumentException When the color name isn't defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setForeground($color = null)
|
public function setForeground($color = null)
|
||||||
{
|
{
|
||||||
@ -110,8 +104,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
|
|||||||
* @param string|null $color The color name
|
* @param string|null $color The color name
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When the color name isn't defined
|
* @throws \InvalidArgumentException When the color name isn't defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setBackground($color = null)
|
public function setBackground($color = null)
|
||||||
{
|
{
|
||||||
@ -138,8 +130,6 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
|
|||||||
* @param string $option The option name
|
* @param string $option The option name
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When the option name isn't defined
|
* @throws \InvalidArgumentException When the option name isn't defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setOption($option)
|
public function setOption($option)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Formatter;
|
|||||||
* Formatter style interface for defining styles.
|
* Formatter style interface for defining styles.
|
||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface OutputFormatterStyleInterface
|
interface OutputFormatterStyleInterface
|
||||||
{
|
{
|
||||||
@ -24,8 +22,6 @@ interface OutputFormatterStyleInterface
|
|||||||
* Sets style foreground color.
|
* Sets style foreground color.
|
||||||
*
|
*
|
||||||
* @param string $color The color name
|
* @param string $color The color name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setForeground($color = null);
|
public function setForeground($color = null);
|
||||||
|
|
||||||
@ -33,8 +29,6 @@ interface OutputFormatterStyleInterface
|
|||||||
* Sets style background color.
|
* Sets style background color.
|
||||||
*
|
*
|
||||||
* @param string $color The color name
|
* @param string $color The color name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setBackground($color = null);
|
public function setBackground($color = null);
|
||||||
|
|
||||||
@ -42,8 +36,6 @@ interface OutputFormatterStyleInterface
|
|||||||
* Sets some specific style option.
|
* Sets some specific style option.
|
||||||
*
|
*
|
||||||
* @param string $option The option name
|
* @param string $option The option name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setOption($option);
|
public function setOption($option);
|
||||||
|
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Helper;
|
|||||||
* HelperInterface is the interface all helpers must implement.
|
* HelperInterface is the interface all helpers must implement.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface HelperInterface
|
interface HelperInterface
|
||||||
{
|
{
|
||||||
@ -24,8 +22,6 @@ interface HelperInterface
|
|||||||
* Sets the helper set associated with this helper.
|
* Sets the helper set associated with this helper.
|
||||||
*
|
*
|
||||||
* @param HelperSet $helperSet A HelperSet instance
|
* @param HelperSet $helperSet A HelperSet instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setHelperSet(HelperSet $helperSet = null);
|
public function setHelperSet(HelperSet $helperSet = null);
|
||||||
|
|
||||||
@ -33,8 +29,6 @@ interface HelperInterface
|
|||||||
* Gets the helper set associated with this helper.
|
* Gets the helper set associated with this helper.
|
||||||
*
|
*
|
||||||
* @return HelperSet A HelperSet instance
|
* @return HelperSet A HelperSet instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHelperSet();
|
public function getHelperSet();
|
||||||
|
|
||||||
@ -42,8 +36,6 @@ interface HelperInterface
|
|||||||
* Returns the canonical name of this helper.
|
* Returns the canonical name of this helper.
|
||||||
*
|
*
|
||||||
* @return string The canonical name
|
* @return string The canonical name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName();
|
public function getName();
|
||||||
}
|
}
|
||||||
|
@ -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.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
|
||||||
* @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
|
* @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ArgvInput extends Input
|
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 array $argv An array of parameters from the CLI (in the argv format)
|
||||||
* @param InputDefinition $definition A InputDefinition instance
|
* @param InputDefinition $definition A InputDefinition instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $argv = null, InputDefinition $definition = null)
|
public function __construct(array $argv = null, InputDefinition $definition = null)
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,6 @@ namespace Symfony\Component\Console\Input;
|
|||||||
* $input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar'));
|
* $input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar'));
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ArrayInput extends Input
|
class ArrayInput extends Input
|
||||||
{
|
{
|
||||||
@ -31,8 +29,6 @@ class ArrayInput extends Input
|
|||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
* @param InputDefinition $definition A InputDefinition instance
|
* @param InputDefinition $definition A InputDefinition instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters, InputDefinition $definition = null)
|
public function __construct(array $parameters, InputDefinition $definition = null)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Input;
|
|||||||
* Represents a command line argument.
|
* Represents a command line argument.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class InputArgument
|
class InputArgument
|
||||||
{
|
{
|
||||||
@ -38,8 +36,6 @@ class InputArgument
|
|||||||
* @param mixed $default The default value (for self::OPTIONAL mode only)
|
* @param mixed $default The default value (for self::OPTIONAL mode only)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When argument mode is not valid
|
* @throws \InvalidArgumentException When argument mode is not valid
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $mode = null, $description = '', $default = null)
|
public function __construct($name, $mode = null, $description = '', $default = null)
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\Console\Descriptor\XmlDescriptor;
|
|||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class InputDefinition
|
class InputDefinition
|
||||||
{
|
{
|
||||||
@ -41,8 +39,6 @@ class InputDefinition
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $definition An array of InputArgument and InputOption instance
|
* @param array $definition An array of InputArgument and InputOption instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $definition = array())
|
public function __construct(array $definition = array())
|
||||||
{
|
{
|
||||||
@ -53,8 +49,6 @@ class InputDefinition
|
|||||||
* Sets the definition of the input.
|
* Sets the definition of the input.
|
||||||
*
|
*
|
||||||
* @param array $definition The definition array
|
* @param array $definition The definition array
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefinition(array $definition)
|
public function setDefinition(array $definition)
|
||||||
{
|
{
|
||||||
@ -76,8 +70,6 @@ class InputDefinition
|
|||||||
* Sets the InputArgument objects.
|
* Sets the InputArgument objects.
|
||||||
*
|
*
|
||||||
* @param InputArgument[] $arguments An array of InputArgument objects
|
* @param InputArgument[] $arguments An array of InputArgument objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setArguments($arguments = array())
|
public function setArguments($arguments = array())
|
||||||
{
|
{
|
||||||
@ -92,8 +84,6 @@ class InputDefinition
|
|||||||
* Adds an array of InputArgument objects.
|
* Adds an array of InputArgument objects.
|
||||||
*
|
*
|
||||||
* @param InputArgument[] $arguments An array of InputArgument objects
|
* @param InputArgument[] $arguments An array of InputArgument objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addArguments($arguments = array())
|
public function addArguments($arguments = array())
|
||||||
{
|
{
|
||||||
@ -110,8 +100,6 @@ class InputDefinition
|
|||||||
* @param InputArgument $argument An InputArgument object
|
* @param InputArgument $argument An InputArgument object
|
||||||
*
|
*
|
||||||
* @throws \LogicException When incorrect argument is given
|
* @throws \LogicException When incorrect argument is given
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addArgument(InputArgument $argument)
|
public function addArgument(InputArgument $argument)
|
||||||
{
|
{
|
||||||
@ -148,8 +136,6 @@ class InputDefinition
|
|||||||
* @return InputArgument An InputArgument object
|
* @return InputArgument An InputArgument object
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When argument given doesn't exist
|
* @throws \InvalidArgumentException When argument given doesn't exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArgument($name)
|
public function getArgument($name)
|
||||||
{
|
{
|
||||||
@ -168,8 +154,6 @@ class InputDefinition
|
|||||||
* @param string|int $name The InputArgument name or position
|
* @param string|int $name The InputArgument name or position
|
||||||
*
|
*
|
||||||
* @return bool true if the InputArgument object exists, false otherwise
|
* @return bool true if the InputArgument object exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasArgument($name)
|
public function hasArgument($name)
|
||||||
{
|
{
|
||||||
@ -182,8 +166,6 @@ class InputDefinition
|
|||||||
* Gets the array of InputArgument objects.
|
* Gets the array of InputArgument objects.
|
||||||
*
|
*
|
||||||
* @return InputArgument[] An array of InputArgument objects
|
* @return InputArgument[] An array of InputArgument objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArguments()
|
public function getArguments()
|
||||||
{
|
{
|
||||||
@ -229,8 +211,6 @@ class InputDefinition
|
|||||||
* Sets the InputOption objects.
|
* Sets the InputOption objects.
|
||||||
*
|
*
|
||||||
* @param InputOption[] $options An array of InputOption objects
|
* @param InputOption[] $options An array of InputOption objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setOptions($options = array())
|
public function setOptions($options = array())
|
||||||
{
|
{
|
||||||
@ -243,8 +223,6 @@ class InputDefinition
|
|||||||
* Adds an array of InputOption objects.
|
* Adds an array of InputOption objects.
|
||||||
*
|
*
|
||||||
* @param InputOption[] $options An array of InputOption objects
|
* @param InputOption[] $options An array of InputOption objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addOptions($options = array())
|
public function addOptions($options = array())
|
||||||
{
|
{
|
||||||
@ -259,8 +237,6 @@ class InputDefinition
|
|||||||
* @param InputOption $option An InputOption object
|
* @param InputOption $option An InputOption object
|
||||||
*
|
*
|
||||||
* @throws \LogicException When option given already exist
|
* @throws \LogicException When option given already exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addOption(InputOption $option)
|
public function addOption(InputOption $option)
|
||||||
{
|
{
|
||||||
@ -292,8 +268,6 @@ class InputDefinition
|
|||||||
* @return InputOption A InputOption object
|
* @return InputOption A InputOption object
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When option given doesn't exist
|
* @throws \InvalidArgumentException When option given doesn't exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getOption($name)
|
public function getOption($name)
|
||||||
{
|
{
|
||||||
@ -310,8 +284,6 @@ class InputDefinition
|
|||||||
* @param string $name The InputOption name
|
* @param string $name The InputOption name
|
||||||
*
|
*
|
||||||
* @return bool true if the InputOption object exists, false otherwise
|
* @return bool true if the InputOption object exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasOption($name)
|
public function hasOption($name)
|
||||||
{
|
{
|
||||||
@ -322,8 +294,6 @@ class InputDefinition
|
|||||||
* Gets the array of InputOption objects.
|
* Gets the array of InputOption objects.
|
||||||
*
|
*
|
||||||
* @return InputOption[] An array of InputOption objects
|
* @return InputOption[] An array of InputOption objects
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getOptions()
|
public function getOptions()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Console\Input;
|
|||||||
* Represents a command line option.
|
* Represents a command line option.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class InputOption
|
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)
|
* @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
|
* @throws \InvalidArgumentException If option mode is invalid or incompatible
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $shortcut = null, $mode = null, $description = '', $default = null)
|
public function __construct($name, $shortcut = null, $mode = null, $description = '', $default = null)
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,6 @@ namespace Symfony\Component\Console\Input;
|
|||||||
* $input = new StringInput('foo --bar="foobar"');
|
* $input = new StringInput('foo --bar="foobar"');
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class StringInput extends ArgvInput
|
class StringInput extends ArgvInput
|
||||||
{
|
{
|
||||||
@ -34,8 +32,6 @@ class StringInput extends ArgvInput
|
|||||||
* @param InputDefinition $definition A InputDefinition instance
|
* @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
|
* @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)
|
public function __construct($input, InputDefinition $definition = null)
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface;
|
|||||||
* $output = new StreamOutput(fopen('php://stdout', 'w'));
|
* $output = new StreamOutput(fopen('php://stdout', 'w'));
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
|
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 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 bool|null $decorated Whether to decorate messages (null for auto-guessing)
|
||||||
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
|
* @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)
|
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Tobias Schultze <http://tobion.de>
|
* @author Tobias Schultze <http://tobion.de>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class NullOutput implements OutputInterface
|
class NullOutput implements OutputInterface
|
||||||
{
|
{
|
||||||
|
@ -26,8 +26,6 @@ use Symfony\Component\Console\Formatter\OutputFormatter;
|
|||||||
* * quiet: -q (no output)
|
* * quiet: -q (no output)
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
abstract class Output implements OutputInterface
|
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 int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
|
||||||
* @param bool $decorated Whether to decorate messages
|
* @param bool $decorated Whether to decorate messages
|
||||||
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
|
* @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)
|
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null)
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface;
|
|||||||
* OutputInterface is the interface implemented by all Output classes.
|
* OutputInterface is the interface implemented by all Output classes.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface OutputInterface
|
interface OutputInterface
|
||||||
{
|
{
|
||||||
@ -40,8 +38,6 @@ interface OutputInterface
|
|||||||
* @param int $type The type of output (one of the OUTPUT constants)
|
* @param int $type The type of output (one of the OUTPUT constants)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When unknown output type is given
|
* @throws \InvalidArgumentException When unknown output type is given
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL);
|
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)
|
* @param int $type The type of output (one of the OUTPUT constants)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When unknown output type is given
|
* @throws \InvalidArgumentException When unknown output type is given
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function writeln($messages, $type = self::OUTPUT_NORMAL);
|
public function writeln($messages, $type = self::OUTPUT_NORMAL);
|
||||||
|
|
||||||
@ -61,8 +55,6 @@ interface OutputInterface
|
|||||||
* Sets the verbosity of the output.
|
* Sets the verbosity of the output.
|
||||||
*
|
*
|
||||||
* @param int $level The level of verbosity (one of the VERBOSITY constants)
|
* @param int $level The level of verbosity (one of the VERBOSITY constants)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setVerbosity($level);
|
public function setVerbosity($level);
|
||||||
|
|
||||||
@ -70,8 +62,6 @@ interface OutputInterface
|
|||||||
* Gets the current verbosity of the output.
|
* Gets the current verbosity of the output.
|
||||||
*
|
*
|
||||||
* @return int The current level of verbosity (one of the VERBOSITY constants)
|
* @return int The current level of verbosity (one of the VERBOSITY constants)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getVerbosity();
|
public function getVerbosity();
|
||||||
|
|
||||||
@ -79,8 +69,6 @@ interface OutputInterface
|
|||||||
* Sets the decorated flag.
|
* Sets the decorated flag.
|
||||||
*
|
*
|
||||||
* @param bool $decorated Whether to decorate the messages
|
* @param bool $decorated Whether to decorate the messages
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDecorated($decorated);
|
public function setDecorated($decorated);
|
||||||
|
|
||||||
@ -88,8 +76,6 @@ interface OutputInterface
|
|||||||
* Gets the decorated flag.
|
* Gets the decorated flag.
|
||||||
*
|
*
|
||||||
* @return bool true if the output will decorate messages, false otherwise
|
* @return bool true if the output will decorate messages, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isDecorated();
|
public function isDecorated();
|
||||||
|
|
||||||
@ -97,8 +83,6 @@ interface OutputInterface
|
|||||||
* Sets output formatter.
|
* Sets output formatter.
|
||||||
*
|
*
|
||||||
* @param OutputFormatterInterface $formatter
|
* @param OutputFormatterInterface $formatter
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFormatter(OutputFormatterInterface $formatter);
|
public function setFormatter(OutputFormatterInterface $formatter);
|
||||||
|
|
||||||
@ -106,8 +90,6 @@ interface OutputInterface
|
|||||||
* Returns current output formatter instance.
|
* Returns current output formatter instance.
|
||||||
*
|
*
|
||||||
* @return OutputFormatterInterface
|
* @return OutputFormatterInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFormatter();
|
public function getFormatter();
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface;
|
|||||||
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
|
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class StreamOutput extends Output
|
class StreamOutput extends Output
|
||||||
{
|
{
|
||||||
@ -41,8 +39,6 @@ class StreamOutput extends Output
|
|||||||
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
|
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When first argument is not a real stream
|
* @throws \InvalidArgumentException When first argument is not a real stream
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
|
public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
|
||||||
{
|
{
|
||||||
|
@ -61,8 +61,6 @@ use Symfony\Component\CssSelector\XPath\Translator;
|
|||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class CssSelector
|
class CssSelector
|
||||||
{
|
{
|
||||||
@ -77,8 +75,6 @@ class CssSelector
|
|||||||
* @param string $prefix An optional prefix for the XPath expression.
|
* @param string $prefix An optional prefix for the XPath expression.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function toXPath($cssExpr, $prefix = 'descendant-or-self::')
|
public static function toXPath($cssExpr, $prefix = 'descendant-or-self::')
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\DependencyInjection;
|
namespace Symfony\Component\DependencyInjection;
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
class Alias
|
class Alias
|
||||||
{
|
{
|
||||||
private $id;
|
private $id;
|
||||||
@ -24,8 +21,6 @@ class Alias
|
|||||||
*
|
*
|
||||||
* @param string $id Alias identifier
|
* @param string $id Alias identifier
|
||||||
* @param bool $public If this alias is public
|
* @param bool $public If this alias is public
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($id, $public = true)
|
public function __construct($id, $public = true)
|
||||||
{
|
{
|
||||||
@ -37,8 +32,6 @@ class Alias
|
|||||||
* Checks if this DI Alias should be public or not.
|
* Checks if this DI Alias should be public or not.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isPublic()
|
public function isPublic()
|
||||||
{
|
{
|
||||||
@ -49,8 +42,6 @@ class Alias
|
|||||||
* Sets if this Alias is public.
|
* Sets if this Alias is public.
|
||||||
*
|
*
|
||||||
* @param bool $boolean If this Alias should be public
|
* @param bool $boolean If this Alias should be public
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setPublic($boolean)
|
public function setPublic($boolean)
|
||||||
{
|
{
|
||||||
@ -61,8 +52,6 @@ class Alias
|
|||||||
* Returns the Id of this alias.
|
* Returns the Id of this alias.
|
||||||
*
|
*
|
||||||
* @return string The alias id
|
* @return string The alias id
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
* This class is used to remove circular dependencies between individual passes.
|
* This class is used to remove circular dependencies between individual passes.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Compiler
|
class Compiler
|
||||||
{
|
{
|
||||||
@ -42,8 +40,6 @@ class Compiler
|
|||||||
* Returns the PassConfig.
|
* Returns the PassConfig.
|
||||||
*
|
*
|
||||||
* @return PassConfig The PassConfig instance
|
* @return PassConfig The PassConfig instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPassConfig()
|
public function getPassConfig()
|
||||||
{
|
{
|
||||||
@ -54,8 +50,6 @@ class Compiler
|
|||||||
* Returns the ServiceReferenceGraph.
|
* Returns the ServiceReferenceGraph.
|
||||||
*
|
*
|
||||||
* @return ServiceReferenceGraph The ServiceReferenceGraph instance
|
* @return ServiceReferenceGraph The ServiceReferenceGraph instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getServiceReferenceGraph()
|
public function getServiceReferenceGraph()
|
||||||
{
|
{
|
||||||
@ -77,8 +71,6 @@ class Compiler
|
|||||||
*
|
*
|
||||||
* @param CompilerPassInterface $pass A compiler pass
|
* @param CompilerPassInterface $pass A compiler pass
|
||||||
* @param string $type The type of the pass
|
* @param string $type The type of the pass
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
|
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
|
||||||
{
|
{
|
||||||
@ -109,8 +101,6 @@ class Compiler
|
|||||||
* Run the Compiler and process all Passes.
|
* Run the Compiler and process all Passes.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container
|
* @param ContainerBuilder $container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function compile(ContainerBuilder $container)
|
public function compile(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
* Interface that must be implemented by compilation passes.
|
* Interface that must be implemented by compilation passes.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface CompilerPassInterface
|
interface CompilerPassInterface
|
||||||
{
|
{
|
||||||
@ -26,8 +24,6 @@ interface CompilerPassInterface
|
|||||||
* You can modify the container here before it is dumped to PHP code.
|
* You can modify the container here before it is dumped to PHP code.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container
|
* @param ContainerBuilder $container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function process(ContainerBuilder $container);
|
public function process(ContainerBuilder $container);
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,6 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
|||||||
* This class has a default configuration embedded.
|
* This class has a default configuration embedded.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class PassConfig
|
class PassConfig
|
||||||
{
|
{
|
||||||
@ -77,8 +75,6 @@ class PassConfig
|
|||||||
* Returns all passes in order to be processed.
|
* Returns all passes in order to be processed.
|
||||||
*
|
*
|
||||||
* @return array An array of all passes to process
|
* @return array An array of all passes to process
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPasses()
|
public function getPasses()
|
||||||
{
|
{
|
||||||
@ -99,8 +95,6 @@ class PassConfig
|
|||||||
* @param string $type The pass type
|
* @param string $type The pass type
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException when a pass type doesn't exist
|
* @throws InvalidArgumentException when a pass type doesn't exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION)
|
public function addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION)
|
||||||
{
|
{
|
||||||
@ -117,8 +111,6 @@ class PassConfig
|
|||||||
* Gets all passes for the AfterRemoving pass.
|
* Gets all passes for the AfterRemoving pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAfterRemovingPasses()
|
public function getAfterRemovingPasses()
|
||||||
{
|
{
|
||||||
@ -129,8 +121,6 @@ class PassConfig
|
|||||||
* Gets all passes for the BeforeOptimization pass.
|
* Gets all passes for the BeforeOptimization pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getBeforeOptimizationPasses()
|
public function getBeforeOptimizationPasses()
|
||||||
{
|
{
|
||||||
@ -141,8 +131,6 @@ class PassConfig
|
|||||||
* Gets all passes for the BeforeRemoving pass.
|
* Gets all passes for the BeforeRemoving pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getBeforeRemovingPasses()
|
public function getBeforeRemovingPasses()
|
||||||
{
|
{
|
||||||
@ -153,8 +141,6 @@ class PassConfig
|
|||||||
* Gets all passes for the Optimization pass.
|
* Gets all passes for the Optimization pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getOptimizationPasses()
|
public function getOptimizationPasses()
|
||||||
{
|
{
|
||||||
@ -165,8 +151,6 @@ class PassConfig
|
|||||||
* Gets all passes for the Removing pass.
|
* Gets all passes for the Removing pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRemovingPasses()
|
public function getRemovingPasses()
|
||||||
{
|
{
|
||||||
@ -177,8 +161,6 @@ class PassConfig
|
|||||||
* Gets all passes for the Merge pass.
|
* Gets all passes for the Merge pass.
|
||||||
*
|
*
|
||||||
* @return array An array of passes
|
* @return array An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMergePass()
|
public function getMergePass()
|
||||||
{
|
{
|
||||||
@ -189,8 +171,6 @@ class PassConfig
|
|||||||
* Sets the Merge Pass.
|
* Sets the Merge Pass.
|
||||||
*
|
*
|
||||||
* @param CompilerPassInterface $pass The merge pass
|
* @param CompilerPassInterface $pass The merge pass
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setMergePass(CompilerPassInterface $pass)
|
public function setMergePass(CompilerPassInterface $pass)
|
||||||
{
|
{
|
||||||
@ -201,8 +181,6 @@ class PassConfig
|
|||||||
* Sets the AfterRemoving passes.
|
* Sets the AfterRemoving passes.
|
||||||
*
|
*
|
||||||
* @param array $passes An array of passes
|
* @param array $passes An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setAfterRemovingPasses(array $passes)
|
public function setAfterRemovingPasses(array $passes)
|
||||||
{
|
{
|
||||||
@ -213,8 +191,6 @@ class PassConfig
|
|||||||
* Sets the BeforeOptimization passes.
|
* Sets the BeforeOptimization passes.
|
||||||
*
|
*
|
||||||
* @param array $passes An array of passes
|
* @param array $passes An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setBeforeOptimizationPasses(array $passes)
|
public function setBeforeOptimizationPasses(array $passes)
|
||||||
{
|
{
|
||||||
@ -225,8 +201,6 @@ class PassConfig
|
|||||||
* Sets the BeforeRemoving passes.
|
* Sets the BeforeRemoving passes.
|
||||||
*
|
*
|
||||||
* @param array $passes An array of passes
|
* @param array $passes An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setBeforeRemovingPasses(array $passes)
|
public function setBeforeRemovingPasses(array $passes)
|
||||||
{
|
{
|
||||||
@ -237,8 +211,6 @@ class PassConfig
|
|||||||
* Sets the Optimization passes.
|
* Sets the Optimization passes.
|
||||||
*
|
*
|
||||||
* @param array $passes An array of passes
|
* @param array $passes An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setOptimizationPasses(array $passes)
|
public function setOptimizationPasses(array $passes)
|
||||||
{
|
{
|
||||||
@ -249,8 +221,6 @@ class PassConfig
|
|||||||
* Sets the Removing passes.
|
* Sets the Removing passes.
|
||||||
*
|
*
|
||||||
* @param array $passes An array of passes
|
* @param array $passes An array of passes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setRemovingPasses(array $passes)
|
public function setRemovingPasses(array $passes)
|
||||||
{
|
{
|
||||||
|
@ -57,8 +57,6 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Container implements IntrospectableContainerInterface
|
class Container implements IntrospectableContainerInterface
|
||||||
{
|
{
|
||||||
@ -82,8 +80,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
|
* @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(ParameterBagInterface $parameterBag = null)
|
public function __construct(ParameterBagInterface $parameterBag = null)
|
||||||
{
|
{
|
||||||
@ -104,8 +100,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
*
|
*
|
||||||
* * Parameter values are resolved;
|
* * Parameter values are resolved;
|
||||||
* * The parameter bag is frozen.
|
* * The parameter bag is frozen.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function compile()
|
public function compile()
|
||||||
{
|
{
|
||||||
@ -118,8 +112,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* Returns true if the container parameter bag are frozen.
|
* Returns true if the container parameter bag are frozen.
|
||||||
*
|
*
|
||||||
* @return bool true if the container parameter bag are frozen, false otherwise
|
* @return bool true if the container parameter bag are frozen, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isFrozen()
|
public function isFrozen()
|
||||||
{
|
{
|
||||||
@ -130,8 +122,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* Gets the service container parameter bag.
|
* Gets the service container parameter bag.
|
||||||
*
|
*
|
||||||
* @return ParameterBagInterface A ParameterBagInterface instance
|
* @return ParameterBagInterface A ParameterBagInterface instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParameterBag()
|
public function getParameterBag()
|
||||||
{
|
{
|
||||||
@ -146,8 +136,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @return mixed The parameter value
|
* @return mixed The parameter value
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the parameter is not defined
|
* @throws InvalidArgumentException if the parameter is not defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParameter($name)
|
public function getParameter($name)
|
||||||
{
|
{
|
||||||
@ -160,8 +148,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
*
|
*
|
||||||
* @return bool The presence of parameter in container
|
* @return bool The presence of parameter in container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasParameter($name)
|
public function hasParameter($name)
|
||||||
{
|
{
|
||||||
@ -173,8 +159,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
* @param mixed $value The parameter value
|
* @param mixed $value The parameter value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setParameter($name, $value)
|
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 RuntimeException When trying to set a service in an inactive scope
|
||||||
* @throws InvalidArgumentException When trying to set a service in the prototype scope
|
* @throws InvalidArgumentException When trying to set a service in the prototype scope
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($id, $service, $scope = self::SCOPE_CONTAINER)
|
public function set($id, $service, $scope = self::SCOPE_CONTAINER)
|
||||||
{
|
{
|
||||||
@ -239,8 +221,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
*
|
||||||
* @return bool true if the service is defined, false otherwise
|
* @return bool true if the service is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($id)
|
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
|
* @throws \Exception if an exception has been thrown when the service has been resolved
|
||||||
*
|
*
|
||||||
* @see Reference
|
* @see Reference
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
|
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 RuntimeException When the parent scope is inactive
|
||||||
* @throws InvalidArgumentException When the scope does not exist
|
* @throws InvalidArgumentException When the scope does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function enterScope($name)
|
public function enterScope($name)
|
||||||
{
|
{
|
||||||
@ -450,8 +426,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param string $name The name of the scope to leave
|
* @param string $name The name of the scope to leave
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the scope is not active
|
* @throws InvalidArgumentException if the scope is not active
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function leaveScope($name)
|
public function leaveScope($name)
|
||||||
{
|
{
|
||||||
@ -492,8 +466,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param ScopeInterface $scope
|
* @param ScopeInterface $scope
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException
|
* @throws InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addScope(ScopeInterface $scope)
|
public function addScope(ScopeInterface $scope)
|
||||||
{
|
{
|
||||||
@ -526,8 +498,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param string $name The name of the scope
|
* @param string $name The name of the scope
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasScope($name)
|
public function hasScope($name)
|
||||||
{
|
{
|
||||||
@ -542,8 +512,6 @@ class Container implements IntrospectableContainerInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isScopeActive($name)
|
public function isScopeActive($name)
|
||||||
{
|
{
|
||||||
|
@ -15,15 +15,11 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* A simple implementation of ContainerAwareInterface.
|
* A simple implementation of ContainerAwareInterface.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
abstract class ContainerAware implements ContainerAwareInterface
|
abstract class ContainerAware implements ContainerAwareInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var ContainerInterface
|
* @var ContainerInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
protected $container;
|
protected $container;
|
||||||
|
|
||||||
@ -31,8 +27,6 @@ abstract class ContainerAware implements ContainerAwareInterface
|
|||||||
* Sets the Container associated with this Controller.
|
* Sets the Container associated with this Controller.
|
||||||
*
|
*
|
||||||
* @param ContainerInterface $container A ContainerInterface instance
|
* @param ContainerInterface $container A ContainerInterface instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setContainer(ContainerInterface $container = null)
|
public function setContainer(ContainerInterface $container = null)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* ContainerAwareInterface should be implemented by classes that depends on a Container.
|
* ContainerAwareInterface should be implemented by classes that depends on a Container.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ContainerAwareInterface
|
interface ContainerAwareInterface
|
||||||
{
|
{
|
||||||
@ -24,8 +22,6 @@ interface ContainerAwareInterface
|
|||||||
* Sets the Container.
|
* Sets the Container.
|
||||||
*
|
*
|
||||||
* @param ContainerInterface|null $container A ContainerInterface instance or null
|
* @param ContainerInterface|null $container A ContainerInterface instance or null
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setContainer(ContainerInterface $container = null);
|
public function setContainer(ContainerInterface $container = null);
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,6 @@ use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInst
|
|||||||
* ContainerBuilder is a DI container that provides an API to easily describe services.
|
* ContainerBuilder is a DI container that provides an API to easily describe services.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ContainerBuilder extends Container implements TaggedContainerInterface
|
class ContainerBuilder extends Container implements TaggedContainerInterface
|
||||||
{
|
{
|
||||||
@ -115,8 +113,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Registers an extension.
|
* Registers an extension.
|
||||||
*
|
*
|
||||||
* @param ExtensionInterface $extension An extension instance
|
* @param ExtensionInterface $extension An extension instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function registerExtension(ExtensionInterface $extension)
|
public function registerExtension(ExtensionInterface $extension)
|
||||||
{
|
{
|
||||||
@ -135,8 +131,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @return ExtensionInterface An extension instance
|
* @return ExtensionInterface An extension instance
|
||||||
*
|
*
|
||||||
* @throws LogicException if the extension is not registered
|
* @throws LogicException if the extension is not registered
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExtension($name)
|
public function getExtension($name)
|
||||||
{
|
{
|
||||||
@ -155,8 +149,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Returns all registered extensions.
|
* Returns all registered extensions.
|
||||||
*
|
*
|
||||||
* @return ExtensionInterface[] An array of ExtensionInterface
|
* @return ExtensionInterface[] An array of ExtensionInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExtensions()
|
public function getExtensions()
|
||||||
{
|
{
|
||||||
@ -169,8 +161,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $name The name of the extension
|
* @param string $name The name of the extension
|
||||||
*
|
*
|
||||||
* @return bool If the extension exists
|
* @return bool If the extension exists
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasExtension($name)
|
public function hasExtension($name)
|
||||||
{
|
{
|
||||||
@ -181,8 +171,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Returns an array of resources loaded to build this configuration.
|
* Returns an array of resources loaded to build this configuration.
|
||||||
*
|
*
|
||||||
* @return ResourceInterface[] An array of resources
|
* @return ResourceInterface[] An array of resources
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getResources()
|
public function getResources()
|
||||||
{
|
{
|
||||||
@ -195,8 +183,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param ResourceInterface $resource A resource instance
|
* @param ResourceInterface $resource A resource instance
|
||||||
*
|
*
|
||||||
* @return ContainerBuilder The current instance
|
* @return ContainerBuilder The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addResource(ResourceInterface $resource)
|
public function addResource(ResourceInterface $resource)
|
||||||
{
|
{
|
||||||
@ -215,8 +201,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param ResourceInterface[] $resources An array of resources
|
* @param ResourceInterface[] $resources An array of resources
|
||||||
*
|
*
|
||||||
* @return ContainerBuilder The current instance
|
* @return ContainerBuilder The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setResources(array $resources)
|
public function setResources(array $resources)
|
||||||
{
|
{
|
||||||
@ -235,8 +219,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param object $object An object instance
|
* @param object $object An object instance
|
||||||
*
|
*
|
||||||
* @return ContainerBuilder The current instance
|
* @return ContainerBuilder The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addObjectResource($object)
|
public function addObjectResource($object)
|
||||||
{
|
{
|
||||||
@ -277,8 +259,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
*
|
*
|
||||||
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
||||||
* @throws \LogicException if the container is frozen
|
* @throws \LogicException if the container is frozen
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function loadFromExtension($extension, array $values = array())
|
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
|
* @param string $type The type of compiler pass
|
||||||
*
|
*
|
||||||
* @return ContainerBuilder The current instance
|
* @return ContainerBuilder The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addCompilerPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION)
|
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.
|
* Returns the compiler pass config which can then be modified.
|
||||||
*
|
*
|
||||||
* @return PassConfig The compiler pass config
|
* @return PassConfig The compiler pass config
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCompilerPassConfig()
|
public function getCompilerPassConfig()
|
||||||
{
|
{
|
||||||
@ -336,8 +312,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Returns the compiler.
|
* Returns the compiler.
|
||||||
*
|
*
|
||||||
* @return Compiler The compiler
|
* @return Compiler The compiler
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCompiler()
|
public function getCompiler()
|
||||||
{
|
{
|
||||||
@ -352,8 +326,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Returns all Scopes.
|
* Returns all Scopes.
|
||||||
*
|
*
|
||||||
* @return array An array of scopes
|
* @return array An array of scopes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getScopes()
|
public function getScopes()
|
||||||
{
|
{
|
||||||
@ -364,8 +336,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Returns all Scope children.
|
* Returns all Scope children.
|
||||||
*
|
*
|
||||||
* @return array An array of scope children.
|
* @return array An array of scope children.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getScopeChildren()
|
public function getScopeChildren()
|
||||||
{
|
{
|
||||||
@ -380,8 +350,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $scope The scope
|
* @param string $scope The scope
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($id, $service, $scope = self::SCOPE_CONTAINER)
|
public function set($id, $service, $scope = self::SCOPE_CONTAINER)
|
||||||
{
|
{
|
||||||
@ -417,8 +385,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Removes a service definition.
|
* Removes a service definition.
|
||||||
*
|
*
|
||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function removeDefinition($id)
|
public function removeDefinition($id)
|
||||||
{
|
{
|
||||||
@ -431,8 +397,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
*
|
||||||
* @return bool true if the service is defined, false otherwise
|
* @return bool true if the service is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($id)
|
public function has($id)
|
||||||
{
|
{
|
||||||
@ -455,8 +419,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*
|
*
|
||||||
* @see Reference
|
* @see Reference
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE)
|
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.
|
* @param ContainerBuilder $container The ContainerBuilder instance to merge.
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function merge(ContainerBuilder $container)
|
public function merge(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
@ -558,8 +518,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $name The name of the extension
|
* @param string $name The name of the extension
|
||||||
*
|
*
|
||||||
* @return array An array of configuration
|
* @return array An array of configuration
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExtensionConfig($name)
|
public function getExtensionConfig($name)
|
||||||
{
|
{
|
||||||
@ -598,8 +556,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* * Parameter values are resolved;
|
* * Parameter values are resolved;
|
||||||
* * The parameter bag is frozen;
|
* * The parameter bag is frozen;
|
||||||
* * Extension loading is disabled.
|
* * Extension loading is disabled.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function compile()
|
public function compile()
|
||||||
{
|
{
|
||||||
@ -642,8 +598,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Adds the service aliases.
|
* Adds the service aliases.
|
||||||
*
|
*
|
||||||
* @param array $aliases An array of aliases
|
* @param array $aliases An array of aliases
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addAliases(array $aliases)
|
public function addAliases(array $aliases)
|
||||||
{
|
{
|
||||||
@ -656,8 +610,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Sets the service aliases.
|
* Sets the service aliases.
|
||||||
*
|
*
|
||||||
* @param array $aliases An array of aliases
|
* @param array $aliases An array of aliases
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setAliases(array $aliases)
|
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 id is not a string or an Alias
|
||||||
* @throws InvalidArgumentException if the alias is for itself
|
* @throws InvalidArgumentException if the alias is for itself
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setAlias($alias, $id)
|
public function setAlias($alias, $id)
|
||||||
{
|
{
|
||||||
@ -699,8 +649,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Removes an alias.
|
* Removes an alias.
|
||||||
*
|
*
|
||||||
* @param string $alias The alias to remove
|
* @param string $alias The alias to remove
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function removeAlias($alias)
|
public function removeAlias($alias)
|
||||||
{
|
{
|
||||||
@ -713,8 +661,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
*
|
||||||
* @return bool true if the alias exists, false otherwise
|
* @return bool true if the alias exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasAlias($id)
|
public function hasAlias($id)
|
||||||
{
|
{
|
||||||
@ -725,8 +671,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Gets all defined aliases.
|
* Gets all defined aliases.
|
||||||
*
|
*
|
||||||
* @return Alias[] An array of aliases
|
* @return Alias[] An array of aliases
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAliases()
|
public function getAliases()
|
||||||
{
|
{
|
||||||
@ -741,8 +685,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @return Alias An Alias instance
|
* @return Alias An Alias instance
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the alias does not exist
|
* @throws InvalidArgumentException if the alias does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAlias($id)
|
public function getAlias($id)
|
||||||
{
|
{
|
||||||
@ -765,8 +707,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $class The service class
|
* @param string $class The service class
|
||||||
*
|
*
|
||||||
* @return Definition A Definition instance
|
* @return Definition A Definition instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function register($id, $class = null)
|
public function register($id, $class = null)
|
||||||
{
|
{
|
||||||
@ -777,8 +717,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Adds the service definitions.
|
* Adds the service definitions.
|
||||||
*
|
*
|
||||||
* @param Definition[] $definitions An array of service definitions
|
* @param Definition[] $definitions An array of service definitions
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addDefinitions(array $definitions)
|
public function addDefinitions(array $definitions)
|
||||||
{
|
{
|
||||||
@ -791,8 +729,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Sets the service definitions.
|
* Sets the service definitions.
|
||||||
*
|
*
|
||||||
* @param Definition[] $definitions An array of service definitions
|
* @param Definition[] $definitions An array of service definitions
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefinitions(array $definitions)
|
public function setDefinitions(array $definitions)
|
||||||
{
|
{
|
||||||
@ -804,8 +740,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* Gets all service definitions.
|
* Gets all service definitions.
|
||||||
*
|
*
|
||||||
* @return Definition[] An array of Definition instances
|
* @return Definition[] An array of Definition instances
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDefinitions()
|
public function getDefinitions()
|
||||||
{
|
{
|
||||||
@ -821,8 +755,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @return Definition the service definition
|
* @return Definition the service definition
|
||||||
*
|
*
|
||||||
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
* @throws BadMethodCallException When this ContainerBuilder is frozen
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefinition($id, Definition $definition)
|
public function setDefinition($id, Definition $definition)
|
||||||
{
|
{
|
||||||
@ -843,8 +775,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
*
|
||||||
* @return bool true if the service definition exists, false otherwise
|
* @return bool true if the service definition exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasDefinition($id)
|
public function hasDefinition($id)
|
||||||
{
|
{
|
||||||
@ -859,8 +789,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @return Definition A Definition instance
|
* @return Definition A Definition instance
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the service definition does not exist
|
* @throws InvalidArgumentException if the service definition does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDefinition($id)
|
public function getDefinition($id)
|
||||||
{
|
{
|
||||||
@ -883,8 +811,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @return Definition A Definition instance
|
* @return Definition A Definition instance
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the service definition does not exist
|
* @throws InvalidArgumentException if the service definition does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function findDefinition($id)
|
public function findDefinition($id)
|
||||||
{
|
{
|
||||||
@ -1026,8 +952,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* @param string $name The tag name
|
* @param string $name The tag name
|
||||||
*
|
*
|
||||||
* @return array An array of tags with the tagged service as key, holding a list of attribute arrays.
|
* @return array An array of tags with the tagged service as key, holding a list of attribute arrays.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function findTaggedServiceIds($name)
|
public function findTaggedServiceIds($name)
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,6 @@ use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ContainerInterface
|
interface ContainerInterface
|
||||||
{
|
{
|
||||||
@ -37,8 +35,6 @@ interface ContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
* @param object $service The service instance
|
* @param object $service The service instance
|
||||||
* @param string $scope The scope of the service
|
* @param string $scope The scope of the service
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($id, $service, $scope = self::SCOPE_CONTAINER);
|
public function set($id, $service, $scope = self::SCOPE_CONTAINER);
|
||||||
|
|
||||||
@ -54,8 +50,6 @@ interface ContainerInterface
|
|||||||
* @throws ServiceNotFoundException When the service is not defined
|
* @throws ServiceNotFoundException When the service is not defined
|
||||||
*
|
*
|
||||||
* @see Reference
|
* @see Reference
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
|
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
|
||||||
|
|
||||||
@ -65,8 +59,6 @@ interface ContainerInterface
|
|||||||
* @param string $id The service identifier
|
* @param string $id The service identifier
|
||||||
*
|
*
|
||||||
* @return bool true if the service is defined, false otherwise
|
* @return bool true if the service is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($id);
|
public function has($id);
|
||||||
|
|
||||||
@ -78,8 +70,6 @@ interface ContainerInterface
|
|||||||
* @return mixed The parameter value
|
* @return mixed The parameter value
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException if the parameter is not defined
|
* @throws InvalidArgumentException if the parameter is not defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParameter($name);
|
public function getParameter($name);
|
||||||
|
|
||||||
@ -89,8 +79,6 @@ interface ContainerInterface
|
|||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
*
|
*
|
||||||
* @return bool The presence of parameter in container
|
* @return bool The presence of parameter in container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasParameter($name);
|
public function hasParameter($name);
|
||||||
|
|
||||||
@ -99,8 +87,6 @@ interface ContainerInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
* @param mixed $value The parameter value
|
* @param mixed $value The parameter value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setParameter($name, $value);
|
public function setParameter($name, $value);
|
||||||
|
|
||||||
@ -108,8 +94,6 @@ interface ContainerInterface
|
|||||||
* Enters the given scope.
|
* Enters the given scope.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function enterScope($name);
|
public function enterScope($name);
|
||||||
|
|
||||||
@ -117,8 +101,6 @@ interface ContainerInterface
|
|||||||
* Leaves the current scope, and re-enters the parent scope.
|
* Leaves the current scope, and re-enters the parent scope.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function leaveScope($name);
|
public function leaveScope($name);
|
||||||
|
|
||||||
@ -126,8 +108,6 @@ interface ContainerInterface
|
|||||||
* Adds a scope to the container.
|
* Adds a scope to the container.
|
||||||
*
|
*
|
||||||
* @param ScopeInterface $scope
|
* @param ScopeInterface $scope
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addScope(ScopeInterface $scope);
|
public function addScope(ScopeInterface $scope);
|
||||||
|
|
||||||
@ -137,8 +117,6 @@ interface ContainerInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasScope($name);
|
public function hasScope($name);
|
||||||
|
|
||||||
@ -150,8 +128,6 @@ interface ContainerInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isScopeActive($name);
|
public function isScopeActive($name);
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
|
|||||||
* Definition represents a service definition.
|
* Definition represents a service definition.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Definition
|
class Definition
|
||||||
{
|
{
|
||||||
@ -46,8 +44,6 @@ class Definition
|
|||||||
*
|
*
|
||||||
* @param string $class The service class
|
* @param string $class The service class
|
||||||
* @param array $arguments An array of arguments to pass to the service constructor
|
* @param array $arguments An array of arguments to pass to the service constructor
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($class = null, array $arguments = array())
|
public function __construct($class = null, array $arguments = array())
|
||||||
{
|
{
|
||||||
@ -71,8 +67,6 @@ class Definition
|
|||||||
* @param string $factoryClass The factory class name
|
* @param string $factoryClass The factory class name
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryClass($factoryClass)
|
public function setFactoryClass($factoryClass)
|
||||||
{
|
{
|
||||||
@ -85,8 +79,6 @@ class Definition
|
|||||||
* Gets the factory class.
|
* Gets the factory class.
|
||||||
*
|
*
|
||||||
* @return string The factory class name
|
* @return string The factory class name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFactoryClass()
|
public function getFactoryClass()
|
||||||
{
|
{
|
||||||
@ -99,8 +91,6 @@ class Definition
|
|||||||
* @param string $factoryMethod The factory method name
|
* @param string $factoryMethod The factory method name
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryMethod($factoryMethod)
|
public function setFactoryMethod($factoryMethod)
|
||||||
{
|
{
|
||||||
@ -113,8 +103,6 @@ class Definition
|
|||||||
* Gets the factory method.
|
* Gets the factory method.
|
||||||
*
|
*
|
||||||
* @return string The factory method name
|
* @return string The factory method name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFactoryMethod()
|
public function getFactoryMethod()
|
||||||
{
|
{
|
||||||
@ -127,8 +115,6 @@ class Definition
|
|||||||
* @param string $factoryService The factory service id
|
* @param string $factoryService The factory service id
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryService($factoryService)
|
public function setFactoryService($factoryService)
|
||||||
{
|
{
|
||||||
@ -141,8 +127,6 @@ class Definition
|
|||||||
* Gets the factory service id.
|
* Gets the factory service id.
|
||||||
*
|
*
|
||||||
* @return string The factory service id
|
* @return string The factory service id
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFactoryService()
|
public function getFactoryService()
|
||||||
{
|
{
|
||||||
@ -155,8 +139,6 @@ class Definition
|
|||||||
* @param string $class The service class
|
* @param string $class The service class
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setClass($class)
|
public function setClass($class)
|
||||||
{
|
{
|
||||||
@ -169,8 +151,6 @@ class Definition
|
|||||||
* Gets the service class.
|
* Gets the service class.
|
||||||
*
|
*
|
||||||
* @return string The service class
|
* @return string The service class
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getClass()
|
public function getClass()
|
||||||
{
|
{
|
||||||
@ -183,8 +163,6 @@ class Definition
|
|||||||
* @param array $arguments An array of arguments
|
* @param array $arguments An array of arguments
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setArguments(array $arguments)
|
public function setArguments(array $arguments)
|
||||||
{
|
{
|
||||||
@ -193,9 +171,6 @@ class Definition
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function setProperties(array $properties)
|
public function setProperties(array $properties)
|
||||||
{
|
{
|
||||||
$this->properties = $properties;
|
$this->properties = $properties;
|
||||||
@ -203,17 +178,11 @@ class Definition
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function getProperties()
|
public function getProperties()
|
||||||
{
|
{
|
||||||
return $this->properties;
|
return $this->properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function setProperty($name, $value)
|
public function setProperty($name, $value)
|
||||||
{
|
{
|
||||||
$this->properties[$name] = $value;
|
$this->properties[$name] = $value;
|
||||||
@ -227,8 +196,6 @@ class Definition
|
|||||||
* @param mixed $argument An argument
|
* @param mixed $argument An argument
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addArgument($argument)
|
public function addArgument($argument)
|
||||||
{
|
{
|
||||||
@ -246,8 +213,6 @@ class Definition
|
|||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
*
|
||||||
* @throws OutOfBoundsException When the replaced argument does not exist
|
* @throws OutOfBoundsException When the replaced argument does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replaceArgument($index, $argument)
|
public function replaceArgument($index, $argument)
|
||||||
{
|
{
|
||||||
@ -264,8 +229,6 @@ class Definition
|
|||||||
* Gets the arguments to pass to the service constructor/factory method.
|
* Gets the arguments to pass to the service constructor/factory method.
|
||||||
*
|
*
|
||||||
* @return array The array of arguments
|
* @return array The array of arguments
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArguments()
|
public function getArguments()
|
||||||
{
|
{
|
||||||
@ -280,8 +243,6 @@ class Definition
|
|||||||
* @return mixed The argument value
|
* @return mixed The argument value
|
||||||
*
|
*
|
||||||
* @throws OutOfBoundsException When the argument does not exist
|
* @throws OutOfBoundsException When the argument does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArgument($index)
|
public function getArgument($index)
|
||||||
{
|
{
|
||||||
@ -298,8 +259,6 @@ class Definition
|
|||||||
* @param array $calls An array of method calls
|
* @param array $calls An array of method calls
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setMethodCalls(array $calls = array())
|
public function setMethodCalls(array $calls = array())
|
||||||
{
|
{
|
||||||
@ -320,8 +279,6 @@ class Definition
|
|||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException on empty $method param
|
* @throws InvalidArgumentException on empty $method param
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addMethodCall($method, array $arguments = array())
|
public function addMethodCall($method, array $arguments = array())
|
||||||
{
|
{
|
||||||
@ -339,8 +296,6 @@ class Definition
|
|||||||
* @param string $method The method name to remove
|
* @param string $method The method name to remove
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function removeMethodCall($method)
|
public function removeMethodCall($method)
|
||||||
{
|
{
|
||||||
@ -360,8 +315,6 @@ class Definition
|
|||||||
* @param string $method The method name to search for
|
* @param string $method The method name to search for
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasMethodCall($method)
|
public function hasMethodCall($method)
|
||||||
{
|
{
|
||||||
@ -378,8 +331,6 @@ class Definition
|
|||||||
* Gets the methods to call after service initialization.
|
* Gets the methods to call after service initialization.
|
||||||
*
|
*
|
||||||
* @return array An array of method calls
|
* @return array An array of method calls
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMethodCalls()
|
public function getMethodCalls()
|
||||||
{
|
{
|
||||||
@ -392,8 +343,6 @@ class Definition
|
|||||||
* @param array $tags
|
* @param array $tags
|
||||||
*
|
*
|
||||||
* @return Definition the current instance
|
* @return Definition the current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setTags(array $tags)
|
public function setTags(array $tags)
|
||||||
{
|
{
|
||||||
@ -406,8 +355,6 @@ class Definition
|
|||||||
* Returns all tags.
|
* Returns all tags.
|
||||||
*
|
*
|
||||||
* @return array An array of tags
|
* @return array An array of tags
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getTags()
|
public function getTags()
|
||||||
{
|
{
|
||||||
@ -420,8 +367,6 @@ class Definition
|
|||||||
* @param string $name The tag name
|
* @param string $name The tag name
|
||||||
*
|
*
|
||||||
* @return array An array of attributes
|
* @return array An array of attributes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getTag($name)
|
public function getTag($name)
|
||||||
{
|
{
|
||||||
@ -435,8 +380,6 @@ class Definition
|
|||||||
* @param array $attributes An array of attributes
|
* @param array $attributes An array of attributes
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addTag($name, array $attributes = array())
|
public function addTag($name, array $attributes = array())
|
||||||
{
|
{
|
||||||
@ -451,8 +394,6 @@ class Definition
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasTag($name)
|
public function hasTag($name)
|
||||||
{
|
{
|
||||||
@ -479,8 +420,6 @@ class Definition
|
|||||||
* Clears the tags for this definition.
|
* Clears the tags for this definition.
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clearTags()
|
public function clearTags()
|
||||||
{
|
{
|
||||||
@ -495,8 +434,6 @@ class Definition
|
|||||||
* @param string $file A full pathname to include
|
* @param string $file A full pathname to include
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFile($file)
|
public function setFile($file)
|
||||||
{
|
{
|
||||||
@ -509,8 +446,6 @@ class Definition
|
|||||||
* Gets the file to require before creating the service.
|
* Gets the file to require before creating the service.
|
||||||
*
|
*
|
||||||
* @return string The full pathname to include
|
* @return string The full pathname to include
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFile()
|
public function getFile()
|
||||||
{
|
{
|
||||||
@ -523,8 +458,6 @@ class Definition
|
|||||||
* @param string $scope Whether the service must be shared or not
|
* @param string $scope Whether the service must be shared or not
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setScope($scope)
|
public function setScope($scope)
|
||||||
{
|
{
|
||||||
@ -537,8 +470,6 @@ class Definition
|
|||||||
* Returns the scope of the service.
|
* Returns the scope of the service.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getScope()
|
public function getScope()
|
||||||
{
|
{
|
||||||
@ -551,8 +482,6 @@ class Definition
|
|||||||
* @param bool $boolean
|
* @param bool $boolean
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setPublic($boolean)
|
public function setPublic($boolean)
|
||||||
{
|
{
|
||||||
@ -565,8 +494,6 @@ class Definition
|
|||||||
* Whether this service is public facing.
|
* Whether this service is public facing.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isPublic()
|
public function isPublic()
|
||||||
{
|
{
|
||||||
@ -579,8 +506,6 @@ class Definition
|
|||||||
* @param bool $boolean
|
* @param bool $boolean
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setSynchronized($boolean)
|
public function setSynchronized($boolean)
|
||||||
{
|
{
|
||||||
@ -593,8 +518,6 @@ class Definition
|
|||||||
* Whether this service is synchronized.
|
* Whether this service is synchronized.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSynchronized()
|
public function isSynchronized()
|
||||||
{
|
{
|
||||||
@ -632,8 +555,6 @@ class Definition
|
|||||||
* @param bool $boolean
|
* @param bool $boolean
|
||||||
*
|
*
|
||||||
* @return Definition the current instance
|
* @return Definition the current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setSynthetic($boolean)
|
public function setSynthetic($boolean)
|
||||||
{
|
{
|
||||||
@ -647,8 +568,6 @@ class Definition
|
|||||||
* container, but dynamically injected.
|
* container, but dynamically injected.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSynthetic()
|
public function isSynthetic()
|
||||||
{
|
{
|
||||||
@ -662,8 +581,6 @@ class Definition
|
|||||||
* @param bool $boolean
|
* @param bool $boolean
|
||||||
*
|
*
|
||||||
* @return Definition the current instance
|
* @return Definition the current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setAbstract($boolean)
|
public function setAbstract($boolean)
|
||||||
{
|
{
|
||||||
@ -677,8 +594,6 @@ class Definition
|
|||||||
* template for other definitions.
|
* template for other definitions.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isAbstract()
|
public function isAbstract()
|
||||||
{
|
{
|
||||||
@ -691,8 +606,6 @@ class Definition
|
|||||||
* @param callable $callable A PHP callable
|
* @param callable $callable A PHP callable
|
||||||
*
|
*
|
||||||
* @return Definition The current instance
|
* @return Definition The current instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setConfigurator($callable)
|
public function setConfigurator($callable)
|
||||||
{
|
{
|
||||||
@ -705,8 +618,6 @@ class Definition
|
|||||||
* Gets the configurator to call after the service is fully initialized.
|
* Gets the configurator to call after the service is fully initialized.
|
||||||
*
|
*
|
||||||
* @return callable The PHP callable to call
|
* @return callable The PHP callable to call
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getConfigurator()
|
public function getConfigurator()
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
|
|||||||
* This definition decorates another definition.
|
* This definition decorates another definition.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class DefinitionDecorator extends Definition
|
class DefinitionDecorator extends Definition
|
||||||
{
|
{
|
||||||
@ -30,8 +28,6 @@ class DefinitionDecorator extends Definition
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param string $parent The id of Definition instance to decorate.
|
* @param string $parent The id of Definition instance to decorate.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($parent)
|
public function __construct($parent)
|
||||||
{
|
{
|
||||||
@ -45,8 +41,6 @@ class DefinitionDecorator extends Definition
|
|||||||
* Returns the Definition being decorated.
|
* Returns the Definition being decorated.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParent()
|
public function getParent()
|
||||||
{
|
{
|
||||||
@ -57,8 +51,6 @@ class DefinitionDecorator extends Definition
|
|||||||
* Returns all changes tracked for the Definition object.
|
* Returns all changes tracked for the Definition object.
|
||||||
*
|
*
|
||||||
* @return array An array of changes for this Definition
|
* @return array An array of changes for this Definition
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getChanges()
|
public function getChanges()
|
||||||
{
|
{
|
||||||
@ -67,8 +59,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setClass($class)
|
public function setClass($class)
|
||||||
{
|
{
|
||||||
@ -79,8 +69,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryClass($class)
|
public function setFactoryClass($class)
|
||||||
{
|
{
|
||||||
@ -91,8 +79,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryMethod($method)
|
public function setFactoryMethod($method)
|
||||||
{
|
{
|
||||||
@ -103,8 +89,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFactoryService($service)
|
public function setFactoryService($service)
|
||||||
{
|
{
|
||||||
@ -115,8 +99,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setConfigurator($callable)
|
public function setConfigurator($callable)
|
||||||
{
|
{
|
||||||
@ -127,8 +109,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setFile($file)
|
public function setFile($file)
|
||||||
{
|
{
|
||||||
@ -139,8 +119,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setPublic($boolean)
|
public function setPublic($boolean)
|
||||||
{
|
{
|
||||||
@ -151,8 +129,6 @@ class DefinitionDecorator extends Definition
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setLazy($boolean)
|
public function setLazy($boolean)
|
||||||
{
|
{
|
||||||
@ -172,8 +148,6 @@ class DefinitionDecorator extends Definition
|
|||||||
* @return mixed The argument value
|
* @return mixed The argument value
|
||||||
*
|
*
|
||||||
* @throws OutOfBoundsException When the argument does not exist
|
* @throws OutOfBoundsException When the argument does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArgument($index)
|
public function getArgument($index)
|
||||||
{
|
{
|
||||||
@ -204,8 +178,6 @@ class DefinitionDecorator extends Definition
|
|||||||
* @return DefinitionDecorator the current instance
|
* @return DefinitionDecorator the current instance
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException when $index isn't an integer
|
* @throws InvalidArgumentException when $index isn't an integer
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replaceArgument($index, $value)
|
public function replaceArgument($index, $value)
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
* Dumper is the abstract class for all built-in dumpers.
|
* Dumper is the abstract class for all built-in dumpers.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
abstract class Dumper implements DumperInterface
|
abstract class Dumper implements DumperInterface
|
||||||
{
|
{
|
||||||
@ -28,8 +26,6 @@ abstract class Dumper implements DumperInterface
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container The service container to dump
|
* @param ContainerBuilder $container The service container to dump
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerBuilder $container)
|
public function __construct(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection\Dumper;
|
|||||||
* DumperInterface is the interface implemented by service container dumper classes.
|
* DumperInterface is the interface implemented by service container dumper classes.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface DumperInterface
|
interface DumperInterface
|
||||||
{
|
{
|
||||||
@ -26,8 +24,6 @@ interface DumperInterface
|
|||||||
* @param array $options An array of options
|
* @param array $options An array of options
|
||||||
*
|
*
|
||||||
* @return string The representation of the service container
|
* @return string The representation of the service container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function dump(array $options = array());
|
public function dump(array $options = array());
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,6 @@ use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\NullDumper;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class PhpDumper extends Dumper
|
class PhpDumper extends Dumper
|
||||||
{
|
{
|
||||||
@ -63,8 +61,6 @@ class PhpDumper extends Dumper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(ContainerBuilder $container)
|
public function __construct(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
@ -94,8 +90,6 @@ class PhpDumper extends Dumper
|
|||||||
* @param array $options An array of options
|
* @param array $options An array of options
|
||||||
*
|
*
|
||||||
* @return string A PHP class representing of the service container
|
* @return string A PHP class representing of the service container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function dump(array $options = array())
|
public function dump(array $options = array())
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Martin Hasoň <martin.hason@gmail.com>
|
* @author Martin Hasoň <martin.hason@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class XmlDumper extends Dumper
|
class XmlDumper extends Dumper
|
||||||
{
|
{
|
||||||
@ -39,8 +37,6 @@ class XmlDumper extends Dumper
|
|||||||
* @param array $options An array of options
|
* @param array $options An array of options
|
||||||
*
|
*
|
||||||
* @return string An xml string representing of the service container
|
* @return string An xml string representing of the service container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function dump(array $options = array())
|
public function dump(array $options = array())
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|||||||
* YamlDumper dumps a service container as a YAML string.
|
* YamlDumper dumps a service container as a YAML string.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class YamlDumper extends Dumper
|
class YamlDumper extends Dumper
|
||||||
{
|
{
|
||||||
@ -36,8 +34,6 @@ class YamlDumper extends Dumper
|
|||||||
* @param array $options An array of options
|
* @param array $options An array of options
|
||||||
*
|
*
|
||||||
* @return string A YAML string representing of the service container
|
* @return string A YAML string representing of the service container
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function dump(array $options = array())
|
public function dump(array $options = array())
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
* ExtensionInterface is the interface implemented by container extension classes.
|
* ExtensionInterface is the interface implemented by container extension classes.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ExtensionInterface
|
interface ExtensionInterface
|
||||||
{
|
{
|
||||||
@ -29,8 +27,6 @@ interface ExtensionInterface
|
|||||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
* @param ContainerBuilder $container A ContainerBuilder instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When provided tag is not defined in this extension
|
* @throws \InvalidArgumentException When provided tag is not defined in this extension
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function load(array $config, ContainerBuilder $container);
|
public function load(array $config, ContainerBuilder $container);
|
||||||
|
|
||||||
@ -38,8 +34,6 @@ interface ExtensionInterface
|
|||||||
* Returns the namespace to be used for this extension (XML namespace).
|
* Returns the namespace to be used for this extension (XML namespace).
|
||||||
*
|
*
|
||||||
* @return string The XML namespace
|
* @return string The XML namespace
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getNamespace();
|
public function getNamespace();
|
||||||
|
|
||||||
@ -47,8 +41,6 @@ interface ExtensionInterface
|
|||||||
* Returns the base path for the XSD files.
|
* Returns the base path for the XSD files.
|
||||||
*
|
*
|
||||||
* @return string The XSD base path
|
* @return string The XSD base path
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getXsdValidationBasePath();
|
public function getXsdValidationBasePath();
|
||||||
|
|
||||||
@ -58,8 +50,6 @@ interface ExtensionInterface
|
|||||||
* This alias is also the mandatory prefix to use when using YAML.
|
* This alias is also the mandatory prefix to use when using YAML.
|
||||||
*
|
*
|
||||||
* @return string The alias
|
* @return string The alias
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAlias();
|
public function getAlias();
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* Parameter represents a parameter reference.
|
* Parameter represents a parameter reference.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Parameter
|
class Parameter
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\DependencyInjection\Exception\LogicException;
|
|||||||
* Holds read-only parameters.
|
* Holds read-only parameters.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class FrozenParameterBag extends ParameterBag
|
class FrozenParameterBag extends ParameterBag
|
||||||
{
|
{
|
||||||
@ -31,8 +29,6 @@ class FrozenParameterBag extends ParameterBag
|
|||||||
* This is always the case when used internally.
|
* This is always the case when used internally.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters = array())
|
public function __construct(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -42,8 +38,6 @@ class FrozenParameterBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
@ -52,8 +46,6 @@ class FrozenParameterBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $parameters)
|
public function add(array $parameters)
|
||||||
{
|
{
|
||||||
@ -62,8 +54,6 @@ class FrozenParameterBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($name, $value)
|
public function set($name, $value)
|
||||||
{
|
{
|
||||||
@ -72,8 +62,6 @@ class FrozenParameterBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($name)
|
public function remove($name)
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,6 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|||||||
* Holds parameters.
|
* Holds parameters.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ParameterBag implements ParameterBagInterface
|
class ParameterBag implements ParameterBagInterface
|
||||||
{
|
{
|
||||||
@ -31,8 +29,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters = array())
|
public function __construct(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -43,8 +39,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all parameters.
|
* Clears all parameters.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
@ -55,8 +49,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* Adds parameters to the service container parameters.
|
* Adds parameters to the service container parameters.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $parameters)
|
public function add(array $parameters)
|
||||||
{
|
{
|
||||||
@ -69,8 +61,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* Gets the service container parameters.
|
* Gets the service container parameters.
|
||||||
*
|
*
|
||||||
* @return array An array of parameters
|
* @return array An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all()
|
public function all()
|
||||||
{
|
{
|
||||||
@ -85,8 +75,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* @return mixed The parameter value
|
* @return mixed The parameter value
|
||||||
*
|
*
|
||||||
* @throws ParameterNotFoundException if the parameter is not defined
|
* @throws ParameterNotFoundException if the parameter is not defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name)
|
public function get($name)
|
||||||
{
|
{
|
||||||
@ -116,8 +104,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
*
|
*
|
||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
* @param mixed $value The parameter value
|
* @param mixed $value The parameter value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($name, $value)
|
public function set($name, $value)
|
||||||
{
|
{
|
||||||
@ -130,8 +116,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
*
|
*
|
||||||
* @return bool true if the parameter name is defined, false otherwise
|
* @return bool true if the parameter name is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($name)
|
public function has($name)
|
||||||
{
|
{
|
||||||
@ -142,8 +126,6 @@ class ParameterBag implements ParameterBagInterface
|
|||||||
* Removes a parameter.
|
* Removes a parameter.
|
||||||
*
|
*
|
||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($name)
|
public function remove($name)
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
|
|||||||
* ParameterBagInterface.
|
* ParameterBagInterface.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ParameterBagInterface
|
interface ParameterBagInterface
|
||||||
{
|
{
|
||||||
@ -27,8 +25,6 @@ interface ParameterBagInterface
|
|||||||
* Clears all parameters.
|
* Clears all parameters.
|
||||||
*
|
*
|
||||||
* @throws LogicException if the ParameterBagInterface can not be cleared
|
* @throws LogicException if the ParameterBagInterface can not be cleared
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear();
|
public function clear();
|
||||||
|
|
||||||
@ -38,8 +34,6 @@ interface ParameterBagInterface
|
|||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
*
|
||||||
* @throws LogicException if the parameter can not be added
|
* @throws LogicException if the parameter can not be added
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $parameters);
|
public function add(array $parameters);
|
||||||
|
|
||||||
@ -47,8 +41,6 @@ interface ParameterBagInterface
|
|||||||
* Gets the service container parameters.
|
* Gets the service container parameters.
|
||||||
*
|
*
|
||||||
* @return array An array of parameters
|
* @return array An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all();
|
public function all();
|
||||||
|
|
||||||
@ -60,8 +52,6 @@ interface ParameterBagInterface
|
|||||||
* @return mixed The parameter value
|
* @return mixed The parameter value
|
||||||
*
|
*
|
||||||
* @throws ParameterNotFoundException if the parameter is not defined
|
* @throws ParameterNotFoundException if the parameter is not defined
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name);
|
public function get($name);
|
||||||
|
|
||||||
@ -72,8 +62,6 @@ interface ParameterBagInterface
|
|||||||
* @param mixed $value The parameter value
|
* @param mixed $value The parameter value
|
||||||
*
|
*
|
||||||
* @throws LogicException if the parameter can not be set
|
* @throws LogicException if the parameter can not be set
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($name, $value);
|
public function set($name, $value);
|
||||||
|
|
||||||
@ -83,8 +71,6 @@ interface ParameterBagInterface
|
|||||||
* @param string $name The parameter name
|
* @param string $name The parameter name
|
||||||
*
|
*
|
||||||
* @return bool true if the parameter name is defined, false otherwise
|
* @return bool true if the parameter name is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($name);
|
public function has($name);
|
||||||
|
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* Reference represents a service reference.
|
* Reference represents a service reference.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Reference
|
class Reference
|
||||||
{
|
{
|
||||||
|
@ -15,34 +15,23 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* Scope class.
|
* Scope class.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Scope implements ScopeInterface
|
class Scope implements ScopeInterface
|
||||||
{
|
{
|
||||||
private $name;
|
private $name;
|
||||||
private $parentName;
|
private $parentName;
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER)
|
public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER)
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->parentName = $parentName;
|
$this->parentName = $parentName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function getParentName()
|
public function getParentName()
|
||||||
{
|
{
|
||||||
return $this->parentName;
|
return $this->parentName;
|
||||||
|
@ -15,18 +15,10 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* Scope Interface.
|
* Scope Interface.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ScopeInterface
|
interface ScopeInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function getName();
|
public function getName();
|
||||||
|
|
||||||
/**
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
public function getParentName();
|
public function getParentName();
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DependencyInjection;
|
|||||||
* TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.
|
* TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface TaggedContainerInterface extends ContainerInterface
|
interface TaggedContainerInterface extends ContainerInterface
|
||||||
{
|
{
|
||||||
@ -26,8 +24,6 @@ interface TaggedContainerInterface extends ContainerInterface
|
|||||||
* @param string $name The tag name
|
* @param string $name The tag name
|
||||||
*
|
*
|
||||||
* @return array An array of tags
|
* @return array An array of tags
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function findTaggedServiceIds($name);
|
public function findTaggedServiceIds($name);
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\CssSelector\CssSelector;
|
|||||||
* Crawler eases navigation of a list of \DOMNode objects.
|
* Crawler eases navigation of a list of \DOMNode objects.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Crawler extends \SplObjectStorage
|
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 mixed $node A Node to use as the base for the crawling
|
||||||
* @param string $currentUri The current URI
|
* @param string $currentUri The current URI
|
||||||
* @param string $baseHref The base href value
|
* @param string $baseHref The base href value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($node = null, $currentUri = null, $baseHref = null)
|
public function __construct($node = null, $currentUri = null, $baseHref = null)
|
||||||
{
|
{
|
||||||
@ -51,8 +47,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all the nodes.
|
* Removes all the nodes.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
@ -68,8 +62,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param \DOMNodeList|\DOMNode|array|string|null $node A node
|
* @param \DOMNodeList|\DOMNode|array|string|null $node A node
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When node is not the expected type.
|
* @throws \InvalidArgumentException When node is not the expected type.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add($node)
|
public function add($node)
|
||||||
{
|
{
|
||||||
@ -145,8 +137,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
*
|
*
|
||||||
* @param string $content The HTML content
|
* @param string $content The HTML content
|
||||||
* @param string $charset The charset
|
* @param string $charset The charset
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addHtmlContent($content, $charset = 'UTF-8')
|
public function addHtmlContent($content, $charset = 'UTF-8')
|
||||||
{
|
{
|
||||||
@ -229,8 +219,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
*
|
*
|
||||||
* @param string $content The XML content
|
* @param string $content The XML content
|
||||||
* @param string $charset The charset
|
* @param string $charset The charset
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addXmlContent($content, $charset = 'UTF-8')
|
public function addXmlContent($content, $charset = 'UTF-8')
|
||||||
{
|
{
|
||||||
@ -255,8 +243,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Adds a \DOMDocument to the list of nodes.
|
* Adds a \DOMDocument to the list of nodes.
|
||||||
*
|
*
|
||||||
* @param \DOMDocument $dom A \DOMDocument instance
|
* @param \DOMDocument $dom A \DOMDocument instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addDocument(\DOMDocument $dom)
|
public function addDocument(\DOMDocument $dom)
|
||||||
{
|
{
|
||||||
@ -269,8 +255,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Adds a \DOMNodeList to the list of nodes.
|
* Adds a \DOMNodeList to the list of nodes.
|
||||||
*
|
*
|
||||||
* @param \DOMNodeList $nodes A \DOMNodeList instance
|
* @param \DOMNodeList $nodes A \DOMNodeList instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addNodeList(\DOMNodeList $nodes)
|
public function addNodeList(\DOMNodeList $nodes)
|
||||||
{
|
{
|
||||||
@ -285,8 +269,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Adds an array of \DOMNode instances to the list of nodes.
|
* Adds an array of \DOMNode instances to the list of nodes.
|
||||||
*
|
*
|
||||||
* @param \DOMNode[] $nodes An array of \DOMNode instances
|
* @param \DOMNode[] $nodes An array of \DOMNode instances
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addNodes(array $nodes)
|
public function addNodes(array $nodes)
|
||||||
{
|
{
|
||||||
@ -299,8 +281,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Adds a \DOMNode instance to the list of nodes.
|
* Adds a \DOMNode instance to the list of nodes.
|
||||||
*
|
*
|
||||||
* @param \DOMNode $node A \DOMNode instance
|
* @param \DOMNode $node A \DOMNode instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addNode(\DOMNode $node)
|
public function addNode(\DOMNode $node)
|
||||||
{
|
{
|
||||||
@ -328,8 +308,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param int $position The position
|
* @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.
|
* @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)
|
public function eq($position)
|
||||||
{
|
{
|
||||||
@ -357,8 +335,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param \Closure $closure An anonymous function
|
* @param \Closure $closure An anonymous function
|
||||||
*
|
*
|
||||||
* @return array An array of values returned by the anonymous function
|
* @return array An array of values returned by the anonymous function
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function each(\Closure $closure)
|
public function each(\Closure $closure)
|
||||||
{
|
{
|
||||||
@ -378,8 +354,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param \Closure $closure An anonymous function
|
* @param \Closure $closure An anonymous function
|
||||||
*
|
*
|
||||||
* @return Crawler A Crawler instance with the selected nodes.
|
* @return Crawler A Crawler instance with the selected nodes.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function reduce(\Closure $closure)
|
public function reduce(\Closure $closure)
|
||||||
{
|
{
|
||||||
@ -397,8 +371,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Returns the first node of the current selection.
|
* Returns the first node of the current selection.
|
||||||
*
|
*
|
||||||
* @return Crawler A Crawler instance with the first selected node
|
* @return Crawler A Crawler instance with the first selected node
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function first()
|
public function first()
|
||||||
{
|
{
|
||||||
@ -409,8 +381,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* Returns the last node of the current selection.
|
* Returns the last node of the current selection.
|
||||||
*
|
*
|
||||||
* @return Crawler A Crawler instance with the last selected node
|
* @return Crawler A Crawler instance with the last selected node
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function last()
|
public function last()
|
||||||
{
|
{
|
||||||
@ -423,8 +393,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Crawler A Crawler instance with the sibling nodes
|
* @return Crawler A Crawler instance with the sibling nodes
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function siblings()
|
public function siblings()
|
||||||
{
|
{
|
||||||
@ -441,8 +409,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Crawler A Crawler instance with the next sibling nodes
|
* @return Crawler A Crawler instance with the next sibling nodes
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function nextAll()
|
public function nextAll()
|
||||||
{
|
{
|
||||||
@ -459,8 +425,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Crawler A Crawler instance with the previous sibling nodes
|
* @return Crawler A Crawler instance with the previous sibling nodes
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function previousAll()
|
public function previousAll()
|
||||||
{
|
{
|
||||||
@ -477,8 +441,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Crawler A Crawler instance with the parents nodes of the current selection
|
* @return Crawler A Crawler instance with the parents nodes of the current selection
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function parents()
|
public function parents()
|
||||||
{
|
{
|
||||||
@ -504,8 +466,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Crawler A Crawler instance with the children nodes
|
* @return Crawler A Crawler instance with the children nodes
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function children()
|
public function children()
|
||||||
{
|
{
|
||||||
@ -526,8 +486,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return string The attribute value
|
* @return string The attribute value
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function attr($attribute)
|
public function attr($attribute)
|
||||||
{
|
{
|
||||||
@ -544,8 +502,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return string The node value
|
* @return string The node value
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When current node is empty
|
* @throws \InvalidArgumentException When current node is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function text()
|
public function text()
|
||||||
{
|
{
|
||||||
@ -597,8 +553,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param array $attributes An array of attributes
|
* @param array $attributes An array of attributes
|
||||||
*
|
*
|
||||||
* @return array An array of extracted values
|
* @return array An array of extracted values
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function extract($attributes)
|
public function extract($attributes)
|
||||||
{
|
{
|
||||||
@ -633,8 +587,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param string $xpath An XPath expression
|
* @param string $xpath An XPath expression
|
||||||
*
|
*
|
||||||
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function filterXPath($xpath)
|
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
|
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException if the CssSelector Component is not available
|
* @throws \RuntimeException if the CssSelector Component is not available
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function filter($selector)
|
public function filter($selector)
|
||||||
{
|
{
|
||||||
@ -679,8 +629,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param string $value The link text
|
* @param string $value The link text
|
||||||
*
|
*
|
||||||
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function selectLink($value)
|
public function selectLink($value)
|
||||||
{
|
{
|
||||||
@ -696,8 +644,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @param string $value The button text
|
* @param string $value The button text
|
||||||
*
|
*
|
||||||
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
* @return Crawler A new instance of Crawler with the filtered list of nodes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function selectButton($value)
|
public function selectButton($value)
|
||||||
{
|
{
|
||||||
@ -717,8 +663,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Link A Link instance
|
* @return Link A Link instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException If the current node list is empty
|
* @throws \InvalidArgumentException If the current node list is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function link($method = 'get')
|
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.
|
* Returns an array of Link objects for the nodes in the list.
|
||||||
*
|
*
|
||||||
* @return Link[] An array of Link instances
|
* @return Link[] An array of Link instances
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function links()
|
public function links()
|
||||||
{
|
{
|
||||||
@ -757,8 +699,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
* @return Form A Form instance
|
* @return Form A Form instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException If the current node list is empty
|
* @throws \InvalidArgumentException If the current node list is empty
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function form(array $values = null, $method = null)
|
public function form(array $values = null, $method = null)
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ namespace Symfony\Component\DomCrawler\Field;
|
|||||||
* It is constructed from a HTML select tag, or a HTML checkbox, or radio inputs.
|
* It is constructed from a HTML select tag, or a HTML checkbox, or radio inputs.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ChoiceFormField extends FormField
|
class ChoiceFormField extends FormField
|
||||||
{
|
{
|
||||||
@ -70,8 +68,6 @@ class ChoiceFormField extends FormField
|
|||||||
* Sets the value of the field.
|
* Sets the value of the field.
|
||||||
*
|
*
|
||||||
* @param string $value The value of the field
|
* @param string $value The value of the field
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function select($value)
|
public function select($value)
|
||||||
{
|
{
|
||||||
@ -82,8 +78,6 @@ class ChoiceFormField extends FormField
|
|||||||
* Ticks a checkbox.
|
* Ticks a checkbox.
|
||||||
*
|
*
|
||||||
* @throws \LogicException When the type provided is not correct
|
* @throws \LogicException When the type provided is not correct
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function tick()
|
public function tick()
|
||||||
{
|
{
|
||||||
@ -98,8 +92,6 @@ class ChoiceFormField extends FormField
|
|||||||
* Ticks a checkbox.
|
* Ticks a checkbox.
|
||||||
*
|
*
|
||||||
* @throws \LogicException When the type provided is not correct
|
* @throws \LogicException When the type provided is not correct
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function untick()
|
public function untick()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler\Field;
|
|||||||
* FileFormField represents a file form field (an HTML file input tag).
|
* FileFormField represents a file form field (an HTML file input tag).
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class FileFormField extends FormField
|
class FileFormField extends FormField
|
||||||
{
|
{
|
||||||
@ -41,8 +39,6 @@ class FileFormField extends FormField
|
|||||||
* Sets the value of the field.
|
* Sets the value of the field.
|
||||||
*
|
*
|
||||||
* @param string $value The value of the field
|
* @param string $value The value of the field
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function upload($value)
|
public function upload($value)
|
||||||
{
|
{
|
||||||
|
@ -81,8 +81,6 @@ abstract class FormField
|
|||||||
* Sets the value of the field.
|
* Sets the value of the field.
|
||||||
*
|
*
|
||||||
* @param string $value The value of the field
|
* @param string $value The value of the field
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setValue($value)
|
public function setValue($value)
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ namespace Symfony\Component\DomCrawler\Field;
|
|||||||
* specialized classes (cf. FileFormField and ChoiceFormField).
|
* specialized classes (cf. FileFormField and ChoiceFormField).
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class InputFormField extends FormField
|
class InputFormField extends FormField
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler\Field;
|
|||||||
* TextareaFormField represents a textarea form field (an HTML textarea tag).
|
* TextareaFormField represents a textarea form field (an HTML textarea tag).
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class TextareaFormField extends FormField
|
class TextareaFormField extends FormField
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\DomCrawler\Field\FormField;
|
|||||||
* Form represents an HTML form.
|
* Form represents an HTML form.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Form extends Link implements \ArrayAccess
|
class Form extends Link implements \ArrayAccess
|
||||||
{
|
{
|
||||||
@ -47,8 +45,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* @param string $baseHref The URI of the <base> used for relative links, but not for empty action
|
* @param string $baseHref The URI of the <base> used for relative links, but not for empty action
|
||||||
*
|
*
|
||||||
* @throws \LogicException if the node is not a button inside a form tag
|
* @throws \LogicException if the node is not a button inside a form tag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(\DOMNode $node, $currentUri, $method = null, $baseHref = null)
|
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
|
* @param array $values An array of field values
|
||||||
*
|
*
|
||||||
* @return Form
|
* @return Form
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setValues(array $values)
|
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).
|
* The returned array does not include file fields (@see getFiles).
|
||||||
*
|
*
|
||||||
* @return array An array of field values.
|
* @return array An array of field values.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getValues()
|
public function getValues()
|
||||||
{
|
{
|
||||||
@ -115,8 +107,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* Gets the file field values.
|
* Gets the file field values.
|
||||||
*
|
*
|
||||||
* @return array An array of file field values.
|
* @return array An array of file field values.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFiles()
|
public function getFiles()
|
||||||
{
|
{
|
||||||
@ -146,8 +136,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* (like foo[bar] to arrays) like PHP does.
|
* (like foo[bar] to arrays) like PHP does.
|
||||||
*
|
*
|
||||||
* @return array An array of field values.
|
* @return array An array of field values.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPhpValues()
|
public function getPhpValues()
|
||||||
{
|
{
|
||||||
@ -171,8 +159,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* (like foo[bar] to arrays) like PHP does.
|
* (like foo[bar] to arrays) like PHP does.
|
||||||
*
|
*
|
||||||
* @return array An array of field values.
|
* @return array An array of field values.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPhpFiles()
|
public function getPhpFiles()
|
||||||
{
|
{
|
||||||
@ -197,8 +183,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* browser behavior.
|
* browser behavior.
|
||||||
*
|
*
|
||||||
* @return string The URI
|
* @return string The URI
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getUri()
|
public function getUri()
|
||||||
{
|
{
|
||||||
@ -232,8 +216,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* If no method is defined in the form, GET is returned.
|
* If no method is defined in the form, GET is returned.
|
||||||
*
|
*
|
||||||
* @return string The method
|
* @return string The method
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMethod()
|
public function getMethod()
|
||||||
{
|
{
|
||||||
@ -250,8 +232,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* @param string $name The field name
|
* @param string $name The field name
|
||||||
*
|
*
|
||||||
* @return bool true if the field exists, false otherwise
|
* @return bool true if the field exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($name)
|
public function has($name)
|
||||||
{
|
{
|
||||||
@ -264,8 +244,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* @param string $name The field name
|
* @param string $name The field name
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException when the name is malformed
|
* @throws \InvalidArgumentException when the name is malformed
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($name)
|
public function remove($name)
|
||||||
{
|
{
|
||||||
@ -280,8 +258,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* @return FormField The field instance
|
* @return FormField The field instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When field is not present in this form
|
* @throws \InvalidArgumentException When field is not present in this form
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name)
|
public function get($name)
|
||||||
{
|
{
|
||||||
@ -292,8 +268,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* Sets a named field.
|
* Sets a named field.
|
||||||
*
|
*
|
||||||
* @param FormField $field The field
|
* @param FormField $field The field
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set(FormField $field)
|
public function set(FormField $field)
|
||||||
{
|
{
|
||||||
@ -304,8 +278,6 @@ class Form extends Link implements \ArrayAccess
|
|||||||
* Gets all fields.
|
* Gets all fields.
|
||||||
*
|
*
|
||||||
* @return FormField[] An array of fields
|
* @return FormField[] An array of fields
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all()
|
public function all()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\DomCrawler;
|
|||||||
* Link represents an HTML link (an HTML a or area tag).
|
* Link represents an HTML link (an HTML a or area tag).
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Link
|
class Link
|
||||||
{
|
{
|
||||||
@ -43,8 +41,6 @@ class Link
|
|||||||
* @param string $method The method to use for the link (get by default)
|
* @param string $method The method to use for the link (get by default)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException if the node is not a link
|
* @throws \InvalidArgumentException if the node is not a link
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(\DOMNode $node, $currentUri, $method = 'GET')
|
public function __construct(\DOMNode $node, $currentUri, $method = 'GET')
|
||||||
{
|
{
|
||||||
@ -71,8 +67,6 @@ class Link
|
|||||||
* Gets the method associated with this link.
|
* Gets the method associated with this link.
|
||||||
*
|
*
|
||||||
* @return string The method
|
* @return string The method
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMethod()
|
public function getMethod()
|
||||||
{
|
{
|
||||||
@ -83,8 +77,6 @@ class Link
|
|||||||
* Gets the URI associated with this link.
|
* Gets the URI associated with this link.
|
||||||
*
|
*
|
||||||
* @return string The URI
|
* @return string The URI
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getUri()
|
public function getUri()
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,6 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
* @author Jonathan Wage <jonwage@gmail.com>
|
* @author Jonathan Wage <jonwage@gmail.com>
|
||||||
* @author Roman Borschel <roman@code-factory.org>
|
* @author Roman Borschel <roman@code-factory.org>
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Event
|
class Event
|
||||||
{
|
{
|
||||||
@ -50,8 +48,6 @@ class Event
|
|||||||
* @see Event::stopPropagation()
|
* @see Event::stopPropagation()
|
||||||
*
|
*
|
||||||
* @return bool Whether propagation was already stopped for this event.
|
* @return bool Whether propagation was already stopped for this event.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isPropagationStopped()
|
public function isPropagationStopped()
|
||||||
{
|
{
|
||||||
@ -64,8 +60,6 @@ class Event
|
|||||||
* If multiple event listeners are connected to the same event, no
|
* If multiple event listeners are connected to the same event, no
|
||||||
* further event listener will be triggered once any trigger calls
|
* further event listener will be triggered once any trigger calls
|
||||||
* stopPropagation().
|
* stopPropagation().
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function stopPropagation()
|
public function stopPropagation()
|
||||||
{
|
{
|
||||||
@ -76,8 +70,6 @@ class Event
|
|||||||
* Stores the EventDispatcher that dispatches this Event.
|
* Stores the EventDispatcher that dispatches this Event.
|
||||||
*
|
*
|
||||||
* @param EventDispatcherInterface $dispatcher
|
* @param EventDispatcherInterface $dispatcher
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDispatcher(EventDispatcherInterface $dispatcher)
|
public function setDispatcher(EventDispatcherInterface $dispatcher)
|
||||||
{
|
{
|
||||||
@ -88,8 +80,6 @@ class Event
|
|||||||
* Returns the EventDispatcher that dispatches this Event.
|
* Returns the EventDispatcher that dispatches this Event.
|
||||||
*
|
*
|
||||||
* @return EventDispatcherInterface
|
* @return EventDispatcherInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDispatcher()
|
public function getDispatcher()
|
||||||
{
|
{
|
||||||
@ -100,8 +90,6 @@ class Event
|
|||||||
* Gets the event's name.
|
* Gets the event's name.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@ -112,8 +100,6 @@ class Event
|
|||||||
* Sets the event's name property.
|
* Sets the event's name property.
|
||||||
*
|
*
|
||||||
* @param string $name The event name.
|
* @param string $name The event name.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setName($name)
|
public function setName($name)
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,6 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||||
* @author Jordan Alliot <jordan.alliot@gmail.com>
|
* @author Jordan Alliot <jordan.alliot@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class EventDispatcher implements EventDispatcherInterface
|
class EventDispatcher implements EventDispatcherInterface
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
* manager.
|
* manager.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface EventDispatcherInterface
|
interface EventDispatcherInterface
|
||||||
{
|
{
|
||||||
@ -32,8 +30,6 @@ interface EventDispatcherInterface
|
|||||||
* If not supplied, an empty Event instance is created.
|
* If not supplied, an empty Event instance is created.
|
||||||
*
|
*
|
||||||
* @return Event
|
* @return Event
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function dispatch($eventName, Event $event = null);
|
public function dispatch($eventName, Event $event = null);
|
||||||
|
|
||||||
@ -44,8 +40,6 @@ interface EventDispatcherInterface
|
|||||||
* @param callable $listener The listener
|
* @param callable $listener The listener
|
||||||
* @param int $priority The higher this value, the earlier an event
|
* @param int $priority The higher this value, the earlier an event
|
||||||
* listener will be triggered in the chain (defaults to 0)
|
* listener will be triggered in the chain (defaults to 0)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addListener($eventName, $listener, $priority = 0);
|
public function addListener($eventName, $listener, $priority = 0);
|
||||||
|
|
||||||
@ -56,8 +50,6 @@ interface EventDispatcherInterface
|
|||||||
* interested in and added as a listener for these events.
|
* interested in and added as a listener for these events.
|
||||||
*
|
*
|
||||||
* @param EventSubscriberInterface $subscriber The subscriber.
|
* @param EventSubscriberInterface $subscriber The subscriber.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function addSubscriber(EventSubscriberInterface $subscriber);
|
public function addSubscriber(EventSubscriberInterface $subscriber);
|
||||||
|
|
||||||
|
@ -21,8 +21,6 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
* @author Jonathan Wage <jonwage@gmail.com>
|
* @author Jonathan Wage <jonwage@gmail.com>
|
||||||
* @author Roman Borschel <roman@code-factory.org>
|
* @author Roman Borschel <roman@code-factory.org>
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface EventSubscriberInterface
|
interface EventSubscriberInterface
|
||||||
{
|
{
|
||||||
@ -43,8 +41,6 @@ interface EventSubscriberInterface
|
|||||||
* * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
|
* * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
|
||||||
*
|
*
|
||||||
* @return array The event names to listen to
|
* @return array The event names to listen to
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function getSubscribedEvents();
|
public static function getSubscribedEvents();
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Filesystem\Exception;
|
|||||||
* Exception interface for all exceptions thrown by the component.
|
* Exception interface for all exceptions thrown by the component.
|
||||||
*
|
*
|
||||||
* @author Romain Neutron <imprec@gmail.com>
|
* @author Romain Neutron <imprec@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ExceptionInterface
|
interface ExceptionInterface
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Filesystem\Exception;
|
|||||||
* Exception class thrown when a filesystem operation failure happens.
|
* Exception class thrown when a filesystem operation failure happens.
|
||||||
*
|
*
|
||||||
* @author Romain Neutron <imprec@gmail.com>
|
* @author Romain Neutron <imprec@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class IOException extends \RuntimeException implements ExceptionInterface
|
class IOException extends \RuntimeException implements ExceptionInterface
|
||||||
{
|
{
|
||||||
|
@ -39,8 +39,6 @@ use Symfony\Component\Finder\Iterator\SortableIterator;
|
|||||||
* $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
|
* $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Finder implements \IteratorAggregate, \Countable
|
class Finder implements \IteratorAggregate, \Countable
|
||||||
{
|
{
|
||||||
@ -88,8 +86,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* Creates a new Finder.
|
* Creates a new Finder.
|
||||||
*
|
*
|
||||||
* @return Finder A new Finder instance
|
* @return Finder A new Finder instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function create()
|
public static function create()
|
||||||
{
|
{
|
||||||
@ -176,8 +172,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* Restricts the matching to directories only.
|
* Restricts the matching to directories only.
|
||||||
*
|
*
|
||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function directories()
|
public function directories()
|
||||||
{
|
{
|
||||||
@ -190,8 +184,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* Restricts the matching to files only.
|
* Restricts the matching to files only.
|
||||||
*
|
*
|
||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function files()
|
public function files()
|
||||||
{
|
{
|
||||||
@ -214,8 +206,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* @see DepthRangeFilterIterator
|
* @see DepthRangeFilterIterator
|
||||||
* @see NumberComparator
|
* @see NumberComparator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function depth($level)
|
public function depth($level)
|
||||||
{
|
{
|
||||||
@ -241,8 +231,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @see strtotime
|
* @see strtotime
|
||||||
* @see DateRangeFilterIterator
|
* @see DateRangeFilterIterator
|
||||||
* @see DateComparator
|
* @see DateComparator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function date($date)
|
public function date($date)
|
||||||
{
|
{
|
||||||
@ -265,8 +253,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see FilenameFilterIterator
|
* @see FilenameFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function name($pattern)
|
public function name($pattern)
|
||||||
{
|
{
|
||||||
@ -283,8 +269,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see FilenameFilterIterator
|
* @see FilenameFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function notName($pattern)
|
public function notName($pattern)
|
||||||
{
|
{
|
||||||
@ -394,8 +378,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* @see SizeRangeFilterIterator
|
* @see SizeRangeFilterIterator
|
||||||
* @see NumberComparator
|
* @see NumberComparator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function size($size)
|
public function size($size)
|
||||||
{
|
{
|
||||||
@ -412,8 +394,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see ExcludeDirectoryFilterIterator
|
* @see ExcludeDirectoryFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function exclude($dirs)
|
public function exclude($dirs)
|
||||||
{
|
{
|
||||||
@ -430,8 +410,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see ExcludeDirectoryFilterIterator
|
* @see ExcludeDirectoryFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function ignoreDotFiles($ignoreDotFiles)
|
public function ignoreDotFiles($ignoreDotFiles)
|
||||||
{
|
{
|
||||||
@ -452,8 +430,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see ExcludeDirectoryFilterIterator
|
* @see ExcludeDirectoryFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function ignoreVCS($ignoreVCS)
|
public function ignoreVCS($ignoreVCS)
|
||||||
{
|
{
|
||||||
@ -494,8 +470,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sort(\Closure $closure)
|
public function sort(\Closure $closure)
|
||||||
{
|
{
|
||||||
@ -512,8 +486,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sortByName()
|
public function sortByName()
|
||||||
{
|
{
|
||||||
@ -530,8 +502,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sortByType()
|
public function sortByType()
|
||||||
{
|
{
|
||||||
@ -550,8 +520,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sortByAccessedTime()
|
public function sortByAccessedTime()
|
||||||
{
|
{
|
||||||
@ -572,8 +540,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sortByChangedTime()
|
public function sortByChangedTime()
|
||||||
{
|
{
|
||||||
@ -592,8 +558,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see SortableIterator
|
* @see SortableIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function sortByModifiedTime()
|
public function sortByModifiedTime()
|
||||||
{
|
{
|
||||||
@ -613,8 +577,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @see CustomFilterIterator
|
* @see CustomFilterIterator
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function filter(\Closure $closure)
|
public function filter(\Closure $closure)
|
||||||
{
|
{
|
||||||
@ -627,8 +589,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* Forces the following of symlinks.
|
* Forces the following of symlinks.
|
||||||
*
|
*
|
||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function followLinks()
|
public function followLinks()
|
||||||
{
|
{
|
||||||
@ -661,8 +621,6 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
* @return Finder The current Finder instance
|
* @return Finder The current Finder instance
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException if one of the directories does not exist
|
* @throws \InvalidArgumentException if one of the directories does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function in($dirs)
|
public function in($dirs)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* Represents a cookie.
|
* Represents a cookie.
|
||||||
*
|
*
|
||||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Cookie
|
class Cookie
|
||||||
{
|
{
|
||||||
@ -40,8 +38,6 @@ class Cookie
|
|||||||
* @param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol
|
* @param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)
|
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.
|
* Gets the name of the cookie.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@ -128,8 +122,6 @@ class Cookie
|
|||||||
* Gets the value of the cookie.
|
* Gets the value of the cookie.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getValue()
|
public function getValue()
|
||||||
{
|
{
|
||||||
@ -140,8 +132,6 @@ class Cookie
|
|||||||
* Gets the domain that the cookie is available to.
|
* Gets the domain that the cookie is available to.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDomain()
|
public function getDomain()
|
||||||
{
|
{
|
||||||
@ -152,8 +142,6 @@ class Cookie
|
|||||||
* Gets the time the cookie expires.
|
* Gets the time the cookie expires.
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExpiresTime()
|
public function getExpiresTime()
|
||||||
{
|
{
|
||||||
@ -164,8 +152,6 @@ class Cookie
|
|||||||
* Gets the path on the server in which the cookie will be available on.
|
* Gets the path on the server in which the cookie will be available on.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPath()
|
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.
|
* Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSecure()
|
public function isSecure()
|
||||||
{
|
{
|
||||||
@ -188,8 +172,6 @@ class Cookie
|
|||||||
* Checks whether the cookie will be made accessible only through the HTTP protocol.
|
* Checks whether the cookie will be made accessible only through the HTTP protocol.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isHttpOnly()
|
public function isHttpOnly()
|
||||||
{
|
{
|
||||||
@ -200,8 +182,6 @@ class Cookie
|
|||||||
* Whether this cookie is about to be cleared.
|
* Whether this cookie is about to be cleared.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isCleared()
|
public function isCleared()
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,6 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
|
|||||||
* A file in the file system.
|
* A file in the file system.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class File extends \SplFileInfo
|
class File extends \SplFileInfo
|
||||||
{
|
{
|
||||||
@ -32,8 +30,6 @@ class File extends \SplFileInfo
|
|||||||
* @param bool $checkPath Whether to check the path or not
|
* @param bool $checkPath Whether to check the path or not
|
||||||
*
|
*
|
||||||
* @throws FileNotFoundException If the given path is not a file
|
* @throws FileNotFoundException If the given path is not a file
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($path, $checkPath = true)
|
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
|
* @return string|null The guessed extension or null if it cannot be guessed
|
||||||
*
|
*
|
||||||
* @api
|
|
||||||
*
|
|
||||||
* @see ExtensionGuesser
|
* @see ExtensionGuesser
|
||||||
* @see getMimeType()
|
* @see getMimeType()
|
||||||
*/
|
*/
|
||||||
@ -77,8 +71,6 @@ class File extends \SplFileInfo
|
|||||||
* @return string|null The guessed mime type (i.e. "application/pdf")
|
* @return string|null The guessed mime type (i.e. "application/pdf")
|
||||||
*
|
*
|
||||||
* @see MimeTypeGuesser
|
* @see MimeTypeGuesser
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMimeType()
|
public function getMimeType()
|
||||||
{
|
{
|
||||||
@ -93,8 +85,6 @@ class File extends \SplFileInfo
|
|||||||
* \SplFileInfo::getExtension() is not available before PHP 5.3.6
|
* \SplFileInfo::getExtension() is not available before PHP 5.3.6
|
||||||
*
|
*
|
||||||
* @return string The extension
|
* @return string The extension
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExtension()
|
public function getExtension()
|
||||||
{
|
{
|
||||||
@ -110,8 +100,6 @@ class File extends \SplFileInfo
|
|||||||
* @return File A File object representing the new file
|
* @return File A File object representing the new file
|
||||||
*
|
*
|
||||||
* @throws FileException if the target file could not be created
|
* @throws FileException if the target file could not be created
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function move($directory, $name = null)
|
public function move($directory, $name = null)
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,6 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
|
|||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
|
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class UploadedFile extends File
|
class UploadedFile extends File
|
||||||
{
|
{
|
||||||
@ -86,8 +84,6 @@ class UploadedFile extends File
|
|||||||
*
|
*
|
||||||
* @throws FileException If file_uploads is disabled
|
* @throws FileException If file_uploads is disabled
|
||||||
* @throws FileNotFoundException If the file does not exist
|
* @throws FileNotFoundException If the file does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($path, $originalName, $mimeType = null, $size = null, $error = null, $test = false)
|
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.
|
* Then it should not be considered as a safe value.
|
||||||
*
|
*
|
||||||
* @return string|null The original name
|
* @return string|null The original name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getClientOriginalName()
|
public function getClientOriginalName()
|
||||||
{
|
{
|
||||||
@ -140,8 +134,6 @@ class UploadedFile extends File
|
|||||||
* @return string|null The mime type
|
* @return string|null The mime type
|
||||||
*
|
*
|
||||||
* @see getMimeType()
|
* @see getMimeType()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getClientMimeType()
|
public function getClientMimeType()
|
||||||
{
|
{
|
||||||
@ -180,8 +172,6 @@ class UploadedFile extends File
|
|||||||
* Then it should not be considered as a safe value.
|
* Then it should not be considered as a safe value.
|
||||||
*
|
*
|
||||||
* @return int|null The file size
|
* @return int|null The file size
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getClientSize()
|
public function getClientSize()
|
||||||
{
|
{
|
||||||
@ -195,8 +185,6 @@ class UploadedFile extends File
|
|||||||
* Otherwise one of the other UPLOAD_ERR_XXX constants is returned.
|
* Otherwise one of the other UPLOAD_ERR_XXX constants is returned.
|
||||||
*
|
*
|
||||||
* @return int The upload error
|
* @return int The upload error
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getError()
|
public function getError()
|
||||||
{
|
{
|
||||||
@ -207,8 +195,6 @@ class UploadedFile extends File
|
|||||||
* Returns whether the file was uploaded successfully.
|
* Returns whether the file was uploaded successfully.
|
||||||
*
|
*
|
||||||
* @return bool True if the file has been uploaded with HTTP and no error occurred.
|
* @return bool True if the file has been uploaded with HTTP and no error occurred.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isValid()
|
public function isValid()
|
||||||
{
|
{
|
||||||
@ -226,8 +212,6 @@ class UploadedFile extends File
|
|||||||
* @return File A File object representing the new file
|
* @return File A File object representing the new file
|
||||||
*
|
*
|
||||||
* @throws FileException if, for any reason, the file could not have been moved
|
* @throws FileException if, for any reason, the file could not have been moved
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function move($directory, $name = null)
|
public function move($directory, $name = null)
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Bulat Shakirzyanov <mallluhuct@gmail.com>
|
* @author Bulat Shakirzyanov <mallluhuct@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class FileBag extends ParameterBag
|
class FileBag extends ParameterBag
|
||||||
{
|
{
|
||||||
@ -29,8 +27,6 @@ class FileBag extends ParameterBag
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of HTTP files
|
* @param array $parameters An array of HTTP files
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters = array())
|
public function __construct(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -39,8 +35,6 @@ class FileBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replace(array $files = array())
|
public function replace(array $files = array())
|
||||||
{
|
{
|
||||||
@ -50,8 +44,6 @@ class FileBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($key, $value)
|
public function set($key, $value)
|
||||||
{
|
{
|
||||||
@ -64,8 +56,6 @@ class FileBag extends ParameterBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $files = array())
|
public function add(array $files = array())
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* HeaderBag is a container for HTTP headers.
|
* HeaderBag is a container for HTTP headers.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class HeaderBag implements \IteratorAggregate, \Countable
|
class HeaderBag implements \IteratorAggregate, \Countable
|
||||||
{
|
{
|
||||||
@ -27,8 +25,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $headers An array of HTTP headers
|
* @param array $headers An array of HTTP headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $headers = array())
|
public function __construct(array $headers = array())
|
||||||
{
|
{
|
||||||
@ -67,8 +63,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Returns the headers.
|
* Returns the headers.
|
||||||
*
|
*
|
||||||
* @return array An array of headers
|
* @return array An array of headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all()
|
public function all()
|
||||||
{
|
{
|
||||||
@ -79,8 +73,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Returns the parameter keys.
|
* Returns the parameter keys.
|
||||||
*
|
*
|
||||||
* @return array An array of parameter keys
|
* @return array An array of parameter keys
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function keys()
|
public function keys()
|
||||||
{
|
{
|
||||||
@ -91,8 +83,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Replaces the current HTTP headers by a new set.
|
* Replaces the current HTTP headers by a new set.
|
||||||
*
|
*
|
||||||
* @param array $headers An array of HTTP headers
|
* @param array $headers An array of HTTP headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replace(array $headers = array())
|
public function replace(array $headers = array())
|
||||||
{
|
{
|
||||||
@ -104,8 +94,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Adds new headers the current HTTP headers set.
|
* Adds new headers the current HTTP headers set.
|
||||||
*
|
*
|
||||||
* @param array $headers An array of HTTP headers
|
* @param array $headers An array of HTTP headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $headers)
|
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
|
* @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
|
* @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)
|
public function get($key, $default = null, $first = true)
|
||||||
{
|
{
|
||||||
@ -150,8 +136,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* @param string $key The key
|
* @param string $key The key
|
||||||
* @param string|array $values The value or an array of values
|
* @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)
|
* @param bool $replace Whether to replace the actual value or not (true by default)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($key, $values, $replace = true)
|
public function set($key, $values, $replace = true)
|
||||||
{
|
{
|
||||||
@ -176,8 +160,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* @param string $key The HTTP header
|
* @param string $key The HTTP header
|
||||||
*
|
*
|
||||||
* @return bool true if the parameter exists, false otherwise
|
* @return bool true if the parameter exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($key)
|
public function has($key)
|
||||||
{
|
{
|
||||||
@ -191,8 +173,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* @param string $value The HTTP value
|
* @param string $value The HTTP value
|
||||||
*
|
*
|
||||||
* @return bool true if the value is contained in the header, false otherwise
|
* @return bool true if the value is contained in the header, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function contains($key, $value)
|
public function contains($key, $value)
|
||||||
{
|
{
|
||||||
@ -203,8 +183,6 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
* Removes a header.
|
* Removes a header.
|
||||||
*
|
*
|
||||||
* @param string $key The HTTP header name
|
* @param string $key The HTTP header name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($key)
|
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
|
* @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
|
* @throws \RuntimeException When the HTTP header is not parseable
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDate($key, \DateTime $default = null)
|
public function getDate($key, \DateTime $default = null)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* ParameterBag is a container for key/value pairs.
|
* ParameterBag is a container for key/value pairs.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ParameterBag implements \IteratorAggregate, \Countable
|
class ParameterBag implements \IteratorAggregate, \Countable
|
||||||
{
|
{
|
||||||
@ -31,8 +29,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $parameters = array())
|
public function __construct(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -43,8 +39,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Returns the parameters.
|
* Returns the parameters.
|
||||||
*
|
*
|
||||||
* @return array An array of parameters
|
* @return array An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all()
|
public function all()
|
||||||
{
|
{
|
||||||
@ -55,8 +49,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Returns the parameter keys.
|
* Returns the parameter keys.
|
||||||
*
|
*
|
||||||
* @return array An array of parameter keys
|
* @return array An array of parameter keys
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function keys()
|
public function keys()
|
||||||
{
|
{
|
||||||
@ -67,8 +59,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Replaces the current parameters by a new set.
|
* Replaces the current parameters by a new set.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replace(array $parameters = array())
|
public function replace(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -79,8 +69,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Adds parameters.
|
* Adds parameters.
|
||||||
*
|
*
|
||||||
* @param array $parameters An array of parameters
|
* @param array $parameters An array of parameters
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function add(array $parameters = array())
|
public function add(array $parameters = array())
|
||||||
{
|
{
|
||||||
@ -97,8 +85,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($path, $default = null, $deep = false)
|
public function get($path, $default = null, $deep = false)
|
||||||
{
|
{
|
||||||
@ -154,8 +140,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* @param string $key The key
|
* @param string $key The key
|
||||||
* @param mixed $value The value
|
* @param mixed $value The value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($key, $value)
|
public function set($key, $value)
|
||||||
{
|
{
|
||||||
@ -168,8 +152,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* @param string $key The key
|
* @param string $key The key
|
||||||
*
|
*
|
||||||
* @return bool true if the parameter exists, false otherwise
|
* @return bool true if the parameter exists, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($key)
|
public function has($key)
|
||||||
{
|
{
|
||||||
@ -180,8 +162,6 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
* Removes a parameter.
|
* Removes a parameter.
|
||||||
*
|
*
|
||||||
* @param string $key The key
|
* @param string $key The key
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($key)
|
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
|
* @param bool $deep If true, a path like foo[bar] will find deeper items
|
||||||
*
|
*
|
||||||
* @return string The filtered value
|
* @return string The filtered value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAlpha($key, $default = '', $deep = false)
|
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
|
* @param bool $deep If true, a path like foo[bar] will find deeper items
|
||||||
*
|
*
|
||||||
* @return string The filtered value
|
* @return string The filtered value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAlnum($key, $default = '', $deep = false)
|
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
|
* @param bool $deep If true, a path like foo[bar] will find deeper items
|
||||||
*
|
*
|
||||||
* @return string The filtered value
|
* @return string The filtered value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDigits($key, $default = '', $deep = false)
|
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
|
* @param bool $deep If true, a path like foo[bar] will find deeper items
|
||||||
*
|
*
|
||||||
* @return int The filtered value
|
* @return int The filtered value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getInt($key, $default = 0, $deep = false)
|
public function getInt($key, $default = 0, $deep = false)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* RedirectResponse represents an HTTP response doing a redirect.
|
* RedirectResponse represents an HTTP response doing a redirect.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class RedirectResponse extends Response
|
class RedirectResponse extends Response
|
||||||
{
|
{
|
||||||
@ -32,8 +30,6 @@ class RedirectResponse extends Response
|
|||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @see http://tools.ietf.org/html/rfc2616#section-10.3
|
* @see http://tools.ietf.org/html/rfc2616#section-10.3
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($url, $status = 302, $headers = array())
|
public function __construct($url, $status = 302, $headers = array())
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
|||||||
* * getUriForPath
|
* * getUriForPath
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Request
|
class Request
|
||||||
{
|
{
|
||||||
@ -67,8 +65,6 @@ class Request
|
|||||||
* Custom parameters.
|
* Custom parameters.
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $attributes;
|
public $attributes;
|
||||||
|
|
||||||
@ -76,8 +72,6 @@ class Request
|
|||||||
* Request body parameters ($_POST).
|
* Request body parameters ($_POST).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $request;
|
public $request;
|
||||||
|
|
||||||
@ -85,8 +79,6 @@ class Request
|
|||||||
* Query string parameters ($_GET).
|
* Query string parameters ($_GET).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $query;
|
public $query;
|
||||||
|
|
||||||
@ -94,8 +86,6 @@ class Request
|
|||||||
* Server and execution environment parameters ($_SERVER).
|
* Server and execution environment parameters ($_SERVER).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\ServerBag
|
* @var \Symfony\Component\HttpFoundation\ServerBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $server;
|
public $server;
|
||||||
|
|
||||||
@ -103,8 +93,6 @@ class Request
|
|||||||
* Uploaded files ($_FILES).
|
* Uploaded files ($_FILES).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\FileBag
|
* @var \Symfony\Component\HttpFoundation\FileBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $files;
|
public $files;
|
||||||
|
|
||||||
@ -112,8 +100,6 @@ class Request
|
|||||||
* Cookies ($_COOKIE).
|
* Cookies ($_COOKIE).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
* @var \Symfony\Component\HttpFoundation\ParameterBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $cookies;
|
public $cookies;
|
||||||
|
|
||||||
@ -121,8 +107,6 @@ class Request
|
|||||||
* Headers (taken from the $_SERVER).
|
* Headers (taken from the $_SERVER).
|
||||||
*
|
*
|
||||||
* @var \Symfony\Component\HttpFoundation\HeaderBag
|
* @var \Symfony\Component\HttpFoundation\HeaderBag
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public $headers;
|
public $headers;
|
||||||
|
|
||||||
@ -206,8 +190,6 @@ class Request
|
|||||||
* @param array $files The FILES parameters
|
* @param array $files The FILES parameters
|
||||||
* @param array $server The SERVER parameters
|
* @param array $server The SERVER parameters
|
||||||
* @param string|resource $content The raw body data
|
* @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)
|
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 $files The FILES parameters
|
||||||
* @param array $server The SERVER parameters
|
* @param array $server The SERVER parameters
|
||||||
* @param string|resource $content The raw body data
|
* @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)
|
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.
|
* Creates a new request with values from PHP's super globals.
|
||||||
*
|
*
|
||||||
* @return Request A new request
|
* @return Request A new request
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function createFromGlobals()
|
public static function createFromGlobals()
|
||||||
{
|
{
|
||||||
@ -300,8 +278,6 @@ class Request
|
|||||||
* @param string $content The raw body data
|
* @param string $content The raw body data
|
||||||
*
|
*
|
||||||
* @return Request A Request instance
|
* @return Request A Request instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
|
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
|
* @param array $server The SERVER parameters
|
||||||
*
|
*
|
||||||
* @return Request The duplicated request
|
* @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)
|
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.
|
* It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
|
||||||
* $_FILES is never overridden, see rfc1867
|
* $_FILES is never overridden, see rfc1867
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function overrideGlobals()
|
public function overrideGlobals()
|
||||||
{
|
{
|
||||||
@ -531,8 +503,6 @@ class Request
|
|||||||
* You should only list the reverse proxies that you manage directly.
|
* You should only list the reverse proxies that you manage directly.
|
||||||
*
|
*
|
||||||
* @param array $proxies A list of trusted proxies
|
* @param array $proxies A list of trusted proxies
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public static function setTrustedProxies(array $proxies)
|
public static function setTrustedProxies(array $proxies)
|
||||||
{
|
{
|
||||||
@ -730,8 +700,6 @@ class Request
|
|||||||
* Gets the Session.
|
* Gets the Session.
|
||||||
*
|
*
|
||||||
* @return SessionInterface|null The session
|
* @return SessionInterface|null The session
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getSession()
|
public function getSession()
|
||||||
{
|
{
|
||||||
@ -743,8 +711,6 @@ class Request
|
|||||||
* previous requests.
|
* previous requests.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasPreviousSession()
|
public function hasPreviousSession()
|
||||||
{
|
{
|
||||||
@ -760,8 +726,6 @@ class Request
|
|||||||
* is associated with a Session instance.
|
* is associated with a Session instance.
|
||||||
*
|
*
|
||||||
* @return bool true when the Request contains a Session object, false otherwise
|
* @return bool true when the Request contains a Session object, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasSession()
|
public function hasSession()
|
||||||
{
|
{
|
||||||
@ -772,8 +736,6 @@ class Request
|
|||||||
* Sets the Session.
|
* Sets the Session.
|
||||||
*
|
*
|
||||||
* @param SessionInterface $session The Session
|
* @param SessionInterface $session The Session
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setSession(SessionInterface $session)
|
public function setSession(SessionInterface $session)
|
||||||
{
|
{
|
||||||
@ -843,8 +805,6 @@ class Request
|
|||||||
*
|
*
|
||||||
* @see getClientIps()
|
* @see getClientIps()
|
||||||
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
|
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getClientIp()
|
public function getClientIp()
|
||||||
{
|
{
|
||||||
@ -857,8 +817,6 @@ class Request
|
|||||||
* Returns current script name.
|
* Returns current script name.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getScriptName()
|
public function getScriptName()
|
||||||
{
|
{
|
||||||
@ -878,8 +836,6 @@ class Request
|
|||||||
* * http://localhost/mysite/about?var=1 returns '/about'
|
* * http://localhost/mysite/about?var=1 returns '/about'
|
||||||
*
|
*
|
||||||
* @return string The raw path (i.e. not urldecoded)
|
* @return string The raw path (i.e. not urldecoded)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPathInfo()
|
public function getPathInfo()
|
||||||
{
|
{
|
||||||
@ -901,8 +857,6 @@ class Request
|
|||||||
* * http://localhost/we%20b/index.php returns '/we%20b'
|
* * http://localhost/we%20b/index.php returns '/we%20b'
|
||||||
*
|
*
|
||||||
* @return string The raw path (i.e. not urldecoded)
|
* @return string The raw path (i.e. not urldecoded)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getBasePath()
|
public function getBasePath()
|
||||||
{
|
{
|
||||||
@ -922,8 +876,6 @@ class Request
|
|||||||
* script filename (e.g. index.php) if one exists.
|
* script filename (e.g. index.php) if one exists.
|
||||||
*
|
*
|
||||||
* @return string The raw URL (i.e. not urldecoded)
|
* @return string The raw URL (i.e. not urldecoded)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getBaseUrl()
|
public function getBaseUrl()
|
||||||
{
|
{
|
||||||
@ -938,8 +890,6 @@ class Request
|
|||||||
* Gets the request's scheme.
|
* Gets the request's scheme.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getScheme()
|
public function getScheme()
|
||||||
{
|
{
|
||||||
@ -958,8 +908,6 @@ class Request
|
|||||||
* configure it via "setTrustedHeaderName()" with the "client-port" key.
|
* configure it via "setTrustedHeaderName()" with the "client-port" key.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPort()
|
public function getPort()
|
||||||
{
|
{
|
||||||
@ -1033,8 +981,6 @@ class Request
|
|||||||
* The port name will be appended to the host if it's non-standard.
|
* The port name will be appended to the host if it's non-standard.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHttpHost()
|
public function getHttpHost()
|
||||||
{
|
{
|
||||||
@ -1052,8 +998,6 @@ class Request
|
|||||||
* Returns the requested URI (path and query string).
|
* Returns the requested URI (path and query string).
|
||||||
*
|
*
|
||||||
* @return string The raw URI (i.e. not URI decoded)
|
* @return string The raw URI (i.e. not URI decoded)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRequestUri()
|
public function getRequestUri()
|
||||||
{
|
{
|
||||||
@ -1083,8 +1027,6 @@ class Request
|
|||||||
* @return string A normalized URI (URL) for the Request
|
* @return string A normalized URI (URL) for the Request
|
||||||
*
|
*
|
||||||
* @see getQueryString()
|
* @see getQueryString()
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getUri()
|
public function getUri()
|
||||||
{
|
{
|
||||||
@ -1101,8 +1043,6 @@ class Request
|
|||||||
* @param string $path A path to use instead of the current one
|
* @param string $path A path to use instead of the current one
|
||||||
*
|
*
|
||||||
* @return string The normalized URI for the path
|
* @return string The normalized URI for the path
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getUriForPath($path)
|
public function getUriForPath($path)
|
||||||
{
|
{
|
||||||
@ -1116,8 +1056,6 @@ class Request
|
|||||||
* and have consistent escaping.
|
* and have consistent escaping.
|
||||||
*
|
*
|
||||||
* @return string|null A normalized query string for the Request
|
* @return string|null A normalized query string for the Request
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getQueryString()
|
public function getQueryString()
|
||||||
{
|
{
|
||||||
@ -1139,8 +1077,6 @@ class Request
|
|||||||
* the "client-proto" key.
|
* the "client-proto" key.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSecure()
|
public function isSecure()
|
||||||
{
|
{
|
||||||
@ -1167,8 +1103,6 @@ class Request
|
|||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @throws \UnexpectedValueException when the host name is invalid
|
* @throws \UnexpectedValueException when the host name is invalid
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getHost()
|
public function getHost()
|
||||||
{
|
{
|
||||||
@ -1218,8 +1152,6 @@ class Request
|
|||||||
* Sets the request method.
|
* Sets the request method.
|
||||||
*
|
*
|
||||||
* @param string $method
|
* @param string $method
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setMethod($method)
|
public function setMethod($method)
|
||||||
{
|
{
|
||||||
@ -1240,8 +1172,6 @@ class Request
|
|||||||
*
|
*
|
||||||
* @return string The request method
|
* @return string The request method
|
||||||
*
|
*
|
||||||
* @api
|
|
||||||
*
|
|
||||||
* @see getRealMethod()
|
* @see getRealMethod()
|
||||||
*/
|
*/
|
||||||
public function getMethod()
|
public function getMethod()
|
||||||
@ -1279,8 +1209,6 @@ class Request
|
|||||||
* @param string $format The format
|
* @param string $format The format
|
||||||
*
|
*
|
||||||
* @return string The associated mime type (null if not found)
|
* @return string The associated mime type (null if not found)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMimeType($format)
|
public function getMimeType($format)
|
||||||
{
|
{
|
||||||
@ -1297,8 +1225,6 @@ class Request
|
|||||||
* @param string $mimeType The associated mime type
|
* @param string $mimeType The associated mime type
|
||||||
*
|
*
|
||||||
* @return string|null The format (null if not found)
|
* @return string|null The format (null if not found)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getFormat($mimeType)
|
public function getFormat($mimeType)
|
||||||
{
|
{
|
||||||
@ -1322,8 +1248,6 @@ class Request
|
|||||||
*
|
*
|
||||||
* @param string $format The format
|
* @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)
|
* @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)
|
public function setFormat($format, $mimeTypes)
|
||||||
{
|
{
|
||||||
@ -1346,8 +1270,6 @@ class Request
|
|||||||
* @param string $default The default format
|
* @param string $default The default format
|
||||||
*
|
*
|
||||||
* @return string The request format
|
* @return string The request format
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRequestFormat($default = 'html')
|
public function getRequestFormat($default = 'html')
|
||||||
{
|
{
|
||||||
@ -1362,8 +1284,6 @@ class Request
|
|||||||
* Sets the request format.
|
* Sets the request format.
|
||||||
*
|
*
|
||||||
* @param string $format The request format.
|
* @param string $format The request format.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setRequestFormat($format)
|
public function setRequestFormat($format)
|
||||||
{
|
{
|
||||||
@ -1374,8 +1294,6 @@ class Request
|
|||||||
* Gets the format associated with the request.
|
* Gets the format associated with the request.
|
||||||
*
|
*
|
||||||
* @return string|null The format (null if no content type is present)
|
* @return string|null The format (null if no content type is present)
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContentType()
|
public function getContentType()
|
||||||
{
|
{
|
||||||
@ -1386,8 +1304,6 @@ class Request
|
|||||||
* Sets the default locale.
|
* Sets the default locale.
|
||||||
*
|
*
|
||||||
* @param string $locale
|
* @param string $locale
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDefaultLocale($locale)
|
public function setDefaultLocale($locale)
|
||||||
{
|
{
|
||||||
@ -1412,8 +1328,6 @@ class Request
|
|||||||
* Sets the locale.
|
* Sets the locale.
|
||||||
*
|
*
|
||||||
* @param string $locale
|
* @param string $locale
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setLocale($locale)
|
public function setLocale($locale)
|
||||||
{
|
{
|
||||||
@ -1446,8 +1360,6 @@ class Request
|
|||||||
* Checks whether the method is safe or not.
|
* Checks whether the method is safe or not.
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isMethodSafe()
|
public function isMethodSafe()
|
||||||
{
|
{
|
||||||
@ -1528,8 +1440,6 @@ class Request
|
|||||||
* @param array $locales An array of ordered available locales
|
* @param array $locales An array of ordered available locales
|
||||||
*
|
*
|
||||||
* @return string|null The preferred locale
|
* @return string|null The preferred locale
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPreferredLanguage(array $locales = null)
|
public function getPreferredLanguage(array $locales = null)
|
||||||
{
|
{
|
||||||
@ -1563,8 +1473,6 @@ class Request
|
|||||||
* Gets a list of languages acceptable by the client browser.
|
* Gets a list of languages acceptable by the client browser.
|
||||||
*
|
*
|
||||||
* @return array Languages ordered in the user browser preferences
|
* @return array Languages ordered in the user browser preferences
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getLanguages()
|
public function getLanguages()
|
||||||
{
|
{
|
||||||
@ -1605,8 +1513,6 @@ class Request
|
|||||||
* Gets a list of charsets acceptable by the client browser.
|
* Gets a list of charsets acceptable by the client browser.
|
||||||
*
|
*
|
||||||
* @return array List of charsets in preferable order
|
* @return array List of charsets in preferable order
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCharsets()
|
public function getCharsets()
|
||||||
{
|
{
|
||||||
@ -1621,8 +1527,6 @@ class Request
|
|||||||
* Gets a list of content types acceptable by the client browser.
|
* Gets a list of content types acceptable by the client browser.
|
||||||
*
|
*
|
||||||
* @return array List of content types in preferable order
|
* @return array List of content types in preferable order
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getAcceptableContentTypes()
|
public function getAcceptableContentTypes()
|
||||||
{
|
{
|
||||||
@ -1642,8 +1546,6 @@ class Request
|
|||||||
* @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
|
* @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
|
||||||
*
|
*
|
||||||
* @return bool true if the request is an XMLHttpRequest, false otherwise
|
* @return bool true if the request is an XMLHttpRequest, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isXmlHttpRequest()
|
public function isXmlHttpRequest()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* RequestMatcher compares a pre-defined set of checks against a Request instance.
|
* RequestMatcher compares a pre-defined set of checks against a Request instance.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class RequestMatcher implements RequestMatcherInterface
|
class RequestMatcher implements RequestMatcherInterface
|
||||||
{
|
{
|
||||||
@ -126,8 +124,6 @@ class RequestMatcher implements RequestMatcherInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function matches(Request $request)
|
public function matches(Request $request)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* RequestMatcherInterface is an interface for strategies to match a Request.
|
* RequestMatcherInterface is an interface for strategies to match a Request.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface RequestMatcherInterface
|
interface RequestMatcherInterface
|
||||||
{
|
{
|
||||||
@ -26,8 +24,6 @@ interface RequestMatcherInterface
|
|||||||
* @param Request $request The request to check for a match
|
* @param Request $request The request to check for a match
|
||||||
*
|
*
|
||||||
* @return bool true if the request matches, false otherwise
|
* @return bool true if the request matches, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function matches(Request $request);
|
public function matches(Request $request);
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* Response represents an HTTP response.
|
* Response represents an HTTP response.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Response
|
class Response
|
||||||
{
|
{
|
||||||
@ -132,8 +130,6 @@ class Response
|
|||||||
* @param array $headers An array of response headers
|
* @param array $headers An array of response headers
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When the HTTP status code is not valid
|
* @throws \InvalidArgumentException When the HTTP status code is not valid
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($content = '', $status = 200, $headers = array())
|
public function __construct($content = '', $status = 200, $headers = array())
|
||||||
{
|
{
|
||||||
@ -306,8 +302,6 @@ class Response
|
|||||||
* Sends HTTP headers and content.
|
* Sends HTTP headers and content.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function send()
|
public function send()
|
||||||
{
|
{
|
||||||
@ -351,8 +345,6 @@ class Response
|
|||||||
* @return Response
|
* @return Response
|
||||||
*
|
*
|
||||||
* @throws \UnexpectedValueException
|
* @throws \UnexpectedValueException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setContent($content)
|
public function setContent($content)
|
||||||
{
|
{
|
||||||
@ -369,8 +361,6 @@ class Response
|
|||||||
* Gets the current response content.
|
* Gets the current response content.
|
||||||
*
|
*
|
||||||
* @return string Content
|
* @return string Content
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContent()
|
public function getContent()
|
||||||
{
|
{
|
||||||
@ -383,8 +373,6 @@ class Response
|
|||||||
* @param string $version The HTTP protocol version
|
* @param string $version The HTTP protocol version
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setProtocolVersion($version)
|
public function setProtocolVersion($version)
|
||||||
{
|
{
|
||||||
@ -397,8 +385,6 @@ class Response
|
|||||||
* Gets the HTTP protocol version.
|
* Gets the HTTP protocol version.
|
||||||
*
|
*
|
||||||
* @return string The HTTP protocol version
|
* @return string The HTTP protocol version
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getProtocolVersion()
|
public function getProtocolVersion()
|
||||||
{
|
{
|
||||||
@ -417,8 +403,6 @@ class Response
|
|||||||
* @return Response
|
* @return Response
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException When the HTTP status code is not valid
|
* @throws \InvalidArgumentException When the HTTP status code is not valid
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setStatusCode($code, $text = null)
|
public function setStatusCode($code, $text = null)
|
||||||
{
|
{
|
||||||
@ -448,8 +432,6 @@ class Response
|
|||||||
* Retrieves the status code for the current web response.
|
* Retrieves the status code for the current web response.
|
||||||
*
|
*
|
||||||
* @return int Status code
|
* @return int Status code
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getStatusCode()
|
public function getStatusCode()
|
||||||
{
|
{
|
||||||
@ -462,8 +444,6 @@ class Response
|
|||||||
* @param string $charset Character set
|
* @param string $charset Character set
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setCharset($charset)
|
public function setCharset($charset)
|
||||||
{
|
{
|
||||||
@ -476,8 +456,6 @@ class Response
|
|||||||
* Retrieves the response charset.
|
* Retrieves the response charset.
|
||||||
*
|
*
|
||||||
* @return string Character set
|
* @return string Character set
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCharset()
|
public function getCharset()
|
||||||
{
|
{
|
||||||
@ -494,8 +472,6 @@ class Response
|
|||||||
* validator (Last-Modified, ETag) are considered uncacheable.
|
* validator (Last-Modified, ETag) are considered uncacheable.
|
||||||
*
|
*
|
||||||
* @return bool true if the response is worth caching, false otherwise
|
* @return bool true if the response is worth caching, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isCacheable()
|
public function isCacheable()
|
||||||
{
|
{
|
||||||
@ -518,8 +494,6 @@ class Response
|
|||||||
* indicator or Expires header and the calculated age is less than the freshness lifetime.
|
* indicator or Expires header and the calculated age is less than the freshness lifetime.
|
||||||
*
|
*
|
||||||
* @return bool true if the response is fresh, false otherwise
|
* @return bool true if the response is fresh, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isFresh()
|
public function isFresh()
|
||||||
{
|
{
|
||||||
@ -531,8 +505,6 @@ class Response
|
|||||||
* the response with the origin server using a conditional GET request.
|
* the response with the origin server using a conditional GET request.
|
||||||
*
|
*
|
||||||
* @return bool true if the response is validateable, false otherwise
|
* @return bool true if the response is validateable, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isValidateable()
|
public function isValidateable()
|
||||||
{
|
{
|
||||||
@ -545,8 +517,6 @@ class Response
|
|||||||
* It makes the response ineligible for serving other clients.
|
* It makes the response ineligible for serving other clients.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setPrivate()
|
public function setPrivate()
|
||||||
{
|
{
|
||||||
@ -562,8 +532,6 @@ class Response
|
|||||||
* It makes the response eligible for serving other clients.
|
* It makes the response eligible for serving other clients.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setPublic()
|
public function setPublic()
|
||||||
{
|
{
|
||||||
@ -582,8 +550,6 @@ class Response
|
|||||||
* greater than the value provided by the origin.
|
* greater than the value provided by the origin.
|
||||||
*
|
*
|
||||||
* @return bool true if the response must be revalidated by a cache, false otherwise
|
* @return bool true if the response must be revalidated by a cache, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function mustRevalidate()
|
public function mustRevalidate()
|
||||||
{
|
{
|
||||||
@ -596,8 +562,6 @@ class Response
|
|||||||
* @return \DateTime A \DateTime instance
|
* @return \DateTime A \DateTime instance
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException When the header is not parseable
|
* @throws \RuntimeException When the header is not parseable
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getDate()
|
public function getDate()
|
||||||
{
|
{
|
||||||
@ -610,8 +574,6 @@ class Response
|
|||||||
* @param \DateTime $date A \DateTime instance
|
* @param \DateTime $date A \DateTime instance
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setDate(\DateTime $date)
|
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.
|
* Marks the response stale by setting the Age header to be equal to the maximum age of the response.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function expire()
|
public function expire()
|
||||||
{
|
{
|
||||||
@ -655,8 +615,6 @@ class Response
|
|||||||
* Returns the value of the Expires header as a DateTime instance.
|
* 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
|
* @return \DateTime|null A DateTime instance or null if the header does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getExpires()
|
public function getExpires()
|
||||||
{
|
{
|
||||||
@ -676,8 +634,6 @@ class Response
|
|||||||
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setExpires(\DateTime $date = null)
|
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.
|
* back on an expires header. It returns null when no maximum age can be established.
|
||||||
*
|
*
|
||||||
* @return int|null Number of seconds
|
* @return int|null Number of seconds
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getMaxAge()
|
public function getMaxAge()
|
||||||
{
|
{
|
||||||
@ -726,8 +680,6 @@ class Response
|
|||||||
* @param int $value Number of seconds
|
* @param int $value Number of seconds
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setMaxAge($value)
|
public function setMaxAge($value)
|
||||||
{
|
{
|
||||||
@ -744,8 +696,6 @@ class Response
|
|||||||
* @param int $value Number of seconds
|
* @param int $value Number of seconds
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setSharedMaxAge($value)
|
public function setSharedMaxAge($value)
|
||||||
{
|
{
|
||||||
@ -764,8 +714,6 @@ class Response
|
|||||||
* revalidating with the origin.
|
* revalidating with the origin.
|
||||||
*
|
*
|
||||||
* @return int|null The TTL in seconds
|
* @return int|null The TTL in seconds
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getTtl()
|
public function getTtl()
|
||||||
{
|
{
|
||||||
@ -782,8 +730,6 @@ class Response
|
|||||||
* @param int $seconds Number of seconds
|
* @param int $seconds Number of seconds
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setTtl($seconds)
|
public function setTtl($seconds)
|
||||||
{
|
{
|
||||||
@ -800,8 +746,6 @@ class Response
|
|||||||
* @param int $seconds Number of seconds
|
* @param int $seconds Number of seconds
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setClientTtl($seconds)
|
public function setClientTtl($seconds)
|
||||||
{
|
{
|
||||||
@ -816,8 +760,6 @@ class Response
|
|||||||
* @return \DateTime|null A DateTime instance or null if the header does not exist
|
* @return \DateTime|null A DateTime instance or null if the header does not exist
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException When the HTTP header is not parseable
|
* @throws \RuntimeException When the HTTP header is not parseable
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getLastModified()
|
public function getLastModified()
|
||||||
{
|
{
|
||||||
@ -832,8 +774,6 @@ class Response
|
|||||||
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
* @param \DateTime|null $date A \DateTime instance or null to remove the header
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setLastModified(\DateTime $date = null)
|
public function setLastModified(\DateTime $date = null)
|
||||||
{
|
{
|
||||||
@ -852,8 +792,6 @@ class Response
|
|||||||
* Returns the literal value of the ETag HTTP header.
|
* Returns the literal value of the ETag HTTP header.
|
||||||
*
|
*
|
||||||
* @return string|null The ETag HTTP header or null if it does not exist
|
* @return string|null The ETag HTTP header or null if it does not exist
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getEtag()
|
public function getEtag()
|
||||||
{
|
{
|
||||||
@ -867,8 +805,6 @@ class Response
|
|||||||
* @param bool $weak Whether you want a weak ETag or not
|
* @param bool $weak Whether you want a weak ETag or not
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setEtag($etag = null, $weak = false)
|
public function setEtag($etag = null, $weak = false)
|
||||||
{
|
{
|
||||||
@ -895,8 +831,6 @@ class Response
|
|||||||
* @return Response
|
* @return Response
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setCache(array $options)
|
public function setCache(array $options)
|
||||||
{
|
{
|
||||||
@ -948,8 +882,6 @@ class Response
|
|||||||
* @return Response
|
* @return Response
|
||||||
*
|
*
|
||||||
* @see http://tools.ietf.org/html/rfc2616#section-10.3.5
|
* @see http://tools.ietf.org/html/rfc2616#section-10.3.5
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setNotModified()
|
public function setNotModified()
|
||||||
{
|
{
|
||||||
@ -968,8 +900,6 @@ class Response
|
|||||||
* Returns true if the response includes a Vary header.
|
* Returns true if the response includes a Vary header.
|
||||||
*
|
*
|
||||||
* @return bool true if the response includes a Vary header, false otherwise
|
* @return bool true if the response includes a Vary header, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasVary()
|
public function hasVary()
|
||||||
{
|
{
|
||||||
@ -980,8 +910,6 @@ class Response
|
|||||||
* Returns an array of header names given in the Vary header.
|
* Returns an array of header names given in the Vary header.
|
||||||
*
|
*
|
||||||
* @return array An array of Vary names
|
* @return array An array of Vary names
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getVary()
|
public function getVary()
|
||||||
{
|
{
|
||||||
@ -1004,8 +932,6 @@ class Response
|
|||||||
* @param bool $replace Whether to replace the actual value of not (true by default)
|
* @param bool $replace Whether to replace the actual value of not (true by default)
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setVary($headers, $replace = true)
|
public function setVary($headers, $replace = true)
|
||||||
{
|
{
|
||||||
@ -1024,8 +950,6 @@ class Response
|
|||||||
* @param Request $request A Request instance
|
* @param Request $request A Request instance
|
||||||
*
|
*
|
||||||
* @return bool true if the Response validators match the Request, false otherwise
|
* @return bool true if the Response validators match the Request, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isNotModified(Request $request)
|
public function isNotModified(Request $request)
|
||||||
{
|
{
|
||||||
@ -1057,8 +981,6 @@ class Response
|
|||||||
* Is response invalid?
|
* Is response invalid?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isInvalid()
|
public function isInvalid()
|
||||||
{
|
{
|
||||||
@ -1069,8 +991,6 @@ class Response
|
|||||||
* Is response informative?
|
* Is response informative?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isInformational()
|
public function isInformational()
|
||||||
{
|
{
|
||||||
@ -1081,8 +1001,6 @@ class Response
|
|||||||
* Is response successful?
|
* Is response successful?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isSuccessful()
|
public function isSuccessful()
|
||||||
{
|
{
|
||||||
@ -1093,8 +1011,6 @@ class Response
|
|||||||
* Is the response a redirect?
|
* Is the response a redirect?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isRedirection()
|
public function isRedirection()
|
||||||
{
|
{
|
||||||
@ -1105,8 +1021,6 @@ class Response
|
|||||||
* Is there a client error?
|
* Is there a client error?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isClientError()
|
public function isClientError()
|
||||||
{
|
{
|
||||||
@ -1117,8 +1031,6 @@ class Response
|
|||||||
* Was there a server side error?
|
* Was there a server side error?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isServerError()
|
public function isServerError()
|
||||||
{
|
{
|
||||||
@ -1129,8 +1041,6 @@ class Response
|
|||||||
* Is the response OK?
|
* Is the response OK?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isOk()
|
public function isOk()
|
||||||
{
|
{
|
||||||
@ -1141,8 +1051,6 @@ class Response
|
|||||||
* Is the response forbidden?
|
* Is the response forbidden?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isForbidden()
|
public function isForbidden()
|
||||||
{
|
{
|
||||||
@ -1153,8 +1061,6 @@ class Response
|
|||||||
* Is the response a not found error?
|
* Is the response a not found error?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isNotFound()
|
public function isNotFound()
|
||||||
{
|
{
|
||||||
@ -1167,8 +1073,6 @@ class Response
|
|||||||
* @param string $location
|
* @param string $location
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isRedirect($location = null)
|
public function isRedirect($location = null)
|
||||||
{
|
{
|
||||||
@ -1179,8 +1083,6 @@ class Response
|
|||||||
* Is the response empty?
|
* Is the response empty?
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function isEmpty()
|
public function isEmpty()
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* ResponseHeaderBag is a container for Response HTTP headers.
|
* ResponseHeaderBag is a container for Response HTTP headers.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ResponseHeaderBag extends HeaderBag
|
class ResponseHeaderBag extends HeaderBag
|
||||||
{
|
{
|
||||||
@ -45,8 +43,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param array $headers An array of HTTP headers
|
* @param array $headers An array of HTTP headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $headers = array())
|
public function __construct(array $headers = array())
|
||||||
{
|
{
|
||||||
@ -84,8 +80,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function replace(array $headers = array())
|
public function replace(array $headers = array())
|
||||||
{
|
{
|
||||||
@ -100,8 +94,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($key, $values, $replace = true)
|
public function set($key, $values, $replace = true)
|
||||||
{
|
{
|
||||||
@ -121,8 +113,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($key)
|
public function remove($key)
|
||||||
{
|
{
|
||||||
@ -156,8 +146,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
* Sets a cookie.
|
* Sets a cookie.
|
||||||
*
|
*
|
||||||
* @param Cookie $cookie
|
* @param Cookie $cookie
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setCookie(Cookie $cookie)
|
public function setCookie(Cookie $cookie)
|
||||||
{
|
{
|
||||||
@ -170,8 +158,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $domain
|
* @param string $domain
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function removeCookie($name, $path = '/', $domain = null)
|
public function removeCookie($name, $path = '/', $domain = null)
|
||||||
{
|
{
|
||||||
@ -198,8 +184,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
* @throws \InvalidArgumentException When the $format is invalid
|
* @throws \InvalidArgumentException When the $format is invalid
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getCookies($format = self::COOKIES_FLAT)
|
public function getCookies($format = self::COOKIES_FLAT)
|
||||||
{
|
{
|
||||||
@ -229,8 +213,6 @@ class ResponseHeaderBag extends HeaderBag
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $domain
|
* @param string $domain
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clearCookie($name, $path = '/', $domain = null)
|
public function clearCookie($name, $path = '/', $domain = null)
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Drak <drak@zikula.org>
|
* @author Drak <drak@zikula.org>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Session implements SessionInterface, \IteratorAggregate, \Countable
|
class Session implements SessionInterface, \IteratorAggregate, \Countable
|
||||||
{
|
{
|
||||||
|
@ -26,8 +26,6 @@ interface SessionInterface
|
|||||||
* @return bool True if session started.
|
* @return bool True if session started.
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException If session fails to start.
|
* @throws \RuntimeException If session fails to start.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function start();
|
public function start();
|
||||||
|
|
||||||
@ -35,8 +33,6 @@ interface SessionInterface
|
|||||||
* Returns the session ID.
|
* Returns the session ID.
|
||||||
*
|
*
|
||||||
* @return string The session ID.
|
* @return string The session ID.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getId();
|
public function getId();
|
||||||
|
|
||||||
@ -44,8 +40,6 @@ interface SessionInterface
|
|||||||
* Sets the session ID.
|
* Sets the session ID.
|
||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setId($id);
|
public function setId($id);
|
||||||
|
|
||||||
@ -53,8 +47,6 @@ interface SessionInterface
|
|||||||
* Returns the session name.
|
* Returns the session name.
|
||||||
*
|
*
|
||||||
* @return mixed The session name.
|
* @return mixed The session name.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName();
|
public function getName();
|
||||||
|
|
||||||
@ -62,8 +54,6 @@ interface SessionInterface
|
|||||||
* Sets the session name.
|
* Sets the session name.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setName($name);
|
public function setName($name);
|
||||||
|
|
||||||
@ -79,8 +69,6 @@ interface SessionInterface
|
|||||||
* not a Unix timestamp.
|
* not a Unix timestamp.
|
||||||
*
|
*
|
||||||
* @return bool True if session invalidated, false if error.
|
* @return bool True if session invalidated, false if error.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function invalidate($lifetime = null);
|
public function invalidate($lifetime = null);
|
||||||
|
|
||||||
@ -95,8 +83,6 @@ interface SessionInterface
|
|||||||
* not a Unix timestamp.
|
* not a Unix timestamp.
|
||||||
*
|
*
|
||||||
* @return bool True if session migrated, false if error.
|
* @return bool True if session migrated, false if error.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function migrate($destroy = false, $lifetime = null);
|
public function migrate($destroy = false, $lifetime = null);
|
||||||
|
|
||||||
@ -115,8 +101,6 @@ interface SessionInterface
|
|||||||
* @param string $name The attribute name
|
* @param string $name The attribute name
|
||||||
*
|
*
|
||||||
* @return bool true if the attribute is defined, false otherwise
|
* @return bool true if the attribute is defined, false otherwise
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function has($name);
|
public function has($name);
|
||||||
|
|
||||||
@ -127,8 +111,6 @@ interface SessionInterface
|
|||||||
* @param mixed $default The default value if not found.
|
* @param mixed $default The default value if not found.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function get($name, $default = null);
|
public function get($name, $default = null);
|
||||||
|
|
||||||
@ -137,8 +119,6 @@ interface SessionInterface
|
|||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function set($name, $value);
|
public function set($name, $value);
|
||||||
|
|
||||||
@ -146,8 +126,6 @@ interface SessionInterface
|
|||||||
* Returns attributes.
|
* Returns attributes.
|
||||||
*
|
*
|
||||||
* @return array Attributes
|
* @return array Attributes
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function all();
|
public function all();
|
||||||
|
|
||||||
@ -164,15 +142,11 @@ interface SessionInterface
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return mixed The removed value
|
* @return mixed The removed value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function remove($name);
|
public function remove($name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears all attributes.
|
* Clears all attributes.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function clear();
|
public function clear();
|
||||||
|
|
||||||
|
@ -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.
|
* Can be used in unit testing or in a situations where persisted sessions are not desired.
|
||||||
*
|
*
|
||||||
* @author Drak <drak@zikula.org>
|
* @author Drak <drak@zikula.org>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class NullSessionHandler implements \SessionHandlerInterface
|
class NullSessionHandler implements \SessionHandlerInterface
|
||||||
{
|
{
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Drak <drak@zikula.org>
|
* @author Drak <drak@zikula.org>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface SessionStorageInterface
|
interface SessionStorageInterface
|
||||||
{
|
{
|
||||||
@ -29,8 +27,6 @@ interface SessionStorageInterface
|
|||||||
* @throws \RuntimeException If something goes wrong starting the session.
|
* @throws \RuntimeException If something goes wrong starting the session.
|
||||||
*
|
*
|
||||||
* @return bool True if started.
|
* @return bool True if started.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function start();
|
public function start();
|
||||||
|
|
||||||
@ -45,8 +41,6 @@ interface SessionStorageInterface
|
|||||||
* Returns the session ID.
|
* Returns the session ID.
|
||||||
*
|
*
|
||||||
* @return string The session ID or empty.
|
* @return string The session ID or empty.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getId();
|
public function getId();
|
||||||
|
|
||||||
@ -54,8 +48,6 @@ interface SessionStorageInterface
|
|||||||
* Sets the session ID.
|
* Sets the session ID.
|
||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setId($id);
|
public function setId($id);
|
||||||
|
|
||||||
@ -63,8 +55,6 @@ interface SessionStorageInterface
|
|||||||
* Returns the session name.
|
* Returns the session name.
|
||||||
*
|
*
|
||||||
* @return mixed The session name.
|
* @return mixed The session name.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName();
|
public function getName();
|
||||||
|
|
||||||
@ -72,8 +62,6 @@ interface SessionStorageInterface
|
|||||||
* Sets the session name.
|
* Sets the session name.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setName($name);
|
public function setName($name);
|
||||||
|
|
||||||
@ -105,8 +93,6 @@ interface SessionStorageInterface
|
|||||||
* @return bool True if session regenerated, false if error
|
* @return bool True if session regenerated, false if error
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException If an error occurs while regenerating this storage
|
* @throws \RuntimeException If an error occurs while regenerating this storage
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function regenerate($destroy = false, $lifetime = null);
|
public function regenerate($destroy = false, $lifetime = null);
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
* @see flush()
|
* @see flush()
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class StreamedResponse extends Response
|
class StreamedResponse extends Response
|
||||||
{
|
{
|
||||||
@ -37,8 +35,6 @@ class StreamedResponse extends Response
|
|||||||
* @param mixed $callback A valid PHP callback
|
* @param mixed $callback A valid PHP callback
|
||||||
* @param int $status The response status code
|
* @param int $status The response status code
|
||||||
* @param array $headers An array of response headers
|
* @param array $headers An array of response headers
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct($callback = null, $status = 200, $headers = array())
|
public function __construct($callback = null, $status = 200, $headers = array())
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
|||||||
* for DependencyInjection extensions and Console commands.
|
* for DependencyInjection extensions and Console commands.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
abstract class Bundle extends ContainerAware implements BundleInterface
|
abstract class Bundle extends ContainerAware implements BundleInterface
|
||||||
{
|
{
|
||||||
@ -66,8 +64,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
* @return ExtensionInterface|null The container extension
|
* @return ExtensionInterface|null The container extension
|
||||||
*
|
*
|
||||||
* @throws \LogicException
|
* @throws \LogicException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContainerExtension()
|
public function getContainerExtension()
|
||||||
{
|
{
|
||||||
@ -108,8 +104,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
* Gets the Bundle namespace.
|
* Gets the Bundle namespace.
|
||||||
*
|
*
|
||||||
* @return string The Bundle namespace
|
* @return string The Bundle namespace
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getNamespace()
|
public function getNamespace()
|
||||||
{
|
{
|
||||||
@ -124,8 +118,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
* Gets the Bundle directory path.
|
* Gets the Bundle directory path.
|
||||||
*
|
*
|
||||||
* @return string The Bundle absolute path
|
* @return string The Bundle absolute path
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPath()
|
public function getPath()
|
||||||
{
|
{
|
||||||
@ -140,8 +132,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
* Returns the bundle parent name.
|
* Returns the bundle parent name.
|
||||||
*
|
*
|
||||||
* @return string The Bundle parent name it overrides or null if no parent
|
* @return string The Bundle parent name it overrides or null if no parent
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParent()
|
public function getParent()
|
||||||
{
|
{
|
||||||
@ -151,8 +141,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
* Returns the bundle name (the class short name).
|
* Returns the bundle name (the class short name).
|
||||||
*
|
*
|
||||||
* @return string The Bundle name
|
* @return string The Bundle name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
final public function getName()
|
final public function getName()
|
||||||
{
|
{
|
||||||
|
@ -19,22 +19,16 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
|||||||
* BundleInterface.
|
* BundleInterface.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface BundleInterface extends ContainerAwareInterface
|
interface BundleInterface extends ContainerAwareInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Boots the Bundle.
|
* Boots the Bundle.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function boot();
|
public function boot();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shutdowns the Bundle.
|
* Shutdowns the Bundle.
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function shutdown();
|
public function shutdown();
|
||||||
|
|
||||||
@ -44,8 +38,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* It is only ever called once when the cache is empty.
|
* It is only ever called once when the cache is empty.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container A ContainerBuilder instance
|
* @param ContainerBuilder $container A ContainerBuilder instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function build(ContainerBuilder $container);
|
public function build(ContainerBuilder $container);
|
||||||
|
|
||||||
@ -53,8 +45,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* Returns the container extension that should be implicitly loaded.
|
* Returns the container extension that should be implicitly loaded.
|
||||||
*
|
*
|
||||||
* @return ExtensionInterface|null The default extension or null if there is none
|
* @return ExtensionInterface|null The default extension or null if there is none
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getContainerExtension();
|
public function getContainerExtension();
|
||||||
|
|
||||||
@ -66,8 +56,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* bundle.
|
* bundle.
|
||||||
*
|
*
|
||||||
* @return string The Bundle name it overrides or null if no parent
|
* @return string The Bundle name it overrides or null if no parent
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getParent();
|
public function getParent();
|
||||||
|
|
||||||
@ -75,8 +63,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* Returns the bundle name (the class short name).
|
* Returns the bundle name (the class short name).
|
||||||
*
|
*
|
||||||
* @return string The Bundle name
|
* @return string The Bundle name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName();
|
public function getName();
|
||||||
|
|
||||||
@ -84,8 +70,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* Gets the Bundle namespace.
|
* Gets the Bundle namespace.
|
||||||
*
|
*
|
||||||
* @return string The Bundle namespace
|
* @return string The Bundle namespace
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getNamespace();
|
public function getNamespace();
|
||||||
|
|
||||||
@ -95,8 +79,6 @@ interface BundleInterface extends ContainerAwareInterface
|
|||||||
* The path should always be returned as a Unix path (with /).
|
* The path should always be returned as a Unix path (with /).
|
||||||
*
|
*
|
||||||
* @return string The Bundle absolute path
|
* @return string The Bundle absolute path
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getPath();
|
public function getPath();
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
* Client simulates a browser and makes requests to a Kernel object.
|
* Client simulates a browser and makes requests to a Kernel object.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class Client extends BaseClient
|
class Client extends BaseClient
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
* the controller method arguments.
|
* the controller method arguments.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class ControllerResolver implements ControllerResolverInterface
|
class ControllerResolver implements ControllerResolverInterface
|
||||||
{
|
{
|
||||||
@ -51,8 +49,6 @@ class ControllerResolver implements ControllerResolverInterface
|
|||||||
* or false if this resolver is not able to determine the controller
|
* or false if this resolver is not able to determine the controller
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException|\LogicException If the controller can't be found
|
* @throws \InvalidArgumentException|\LogicException If the controller can't be found
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getController(Request $request)
|
public function getController(Request $request)
|
||||||
{
|
{
|
||||||
@ -102,8 +98,6 @@ class ControllerResolver implements ControllerResolverInterface
|
|||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException When value for argument given is not provided
|
* @throws \RuntimeException When value for argument given is not provided
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArguments(Request $request, $controller)
|
public function getArguments(Request $request, $controller)
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
* A Controller can be any valid PHP callable.
|
* A Controller can be any valid PHP callable.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface ControllerResolverInterface
|
interface ControllerResolverInterface
|
||||||
{
|
{
|
||||||
@ -42,8 +40,6 @@ interface ControllerResolverInterface
|
|||||||
* or false if this resolver is not able to determine the controller
|
* or false if this resolver is not able to determine the controller
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException|\LogicException If the controller can't be found
|
* @throws \InvalidArgumentException|\LogicException If the controller can't be found
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getController(Request $request);
|
public function getController(Request $request);
|
||||||
|
|
||||||
@ -56,8 +52,6 @@ interface ControllerResolverInterface
|
|||||||
* @return array An array of arguments to pass to the controller
|
* @return array An array of arguments to pass to the controller
|
||||||
*
|
*
|
||||||
* @throws \RuntimeException When value for argument given is not provided
|
* @throws \RuntimeException When value for argument given is not provided
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getArguments(Request $request, $controller);
|
public function getArguments(Request $request, $controller);
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
* DataCollectorInterface.
|
* DataCollectorInterface.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
interface DataCollectorInterface
|
interface DataCollectorInterface
|
||||||
{
|
{
|
||||||
@ -29,8 +27,6 @@ interface DataCollectorInterface
|
|||||||
* @param Request $request A Request instance
|
* @param Request $request A Request instance
|
||||||
* @param Response $response A Response instance
|
* @param Response $response A Response instance
|
||||||
* @param \Exception $exception An Exception instance
|
* @param \Exception $exception An Exception instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function collect(Request $request, Response $response, \Exception $exception = null);
|
public function collect(Request $request, Response $response, \Exception $exception = null);
|
||||||
|
|
||||||
@ -38,8 +34,6 @@ interface DataCollectorInterface
|
|||||||
* Returns the name of the collector.
|
* Returns the name of the collector.
|
||||||
*
|
*
|
||||||
* @return string The collector name
|
* @return string The collector name
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getName();
|
public function getName();
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
* Controllers should be callables.
|
* Controllers should be callables.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class FilterControllerEvent extends KernelEvent
|
class FilterControllerEvent extends KernelEvent
|
||||||
{
|
{
|
||||||
@ -47,8 +45,6 @@ class FilterControllerEvent extends KernelEvent
|
|||||||
* Returns the current controller.
|
* Returns the current controller.
|
||||||
*
|
*
|
||||||
* @return callable
|
* @return callable
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getController()
|
public function getController()
|
||||||
{
|
{
|
||||||
@ -61,8 +57,6 @@ class FilterControllerEvent extends KernelEvent
|
|||||||
* @param callable $controller
|
* @param callable $controller
|
||||||
*
|
*
|
||||||
* @throws \LogicException
|
* @throws \LogicException
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setController($controller)
|
public function setController($controller)
|
||||||
{
|
{
|
||||||
|
@ -23,8 +23,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
* browser.
|
* browser.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class FilterResponseEvent extends KernelEvent
|
class FilterResponseEvent extends KernelEvent
|
||||||
{
|
{
|
||||||
@ -46,8 +44,6 @@ class FilterResponseEvent extends KernelEvent
|
|||||||
* Returns the current response object.
|
* Returns the current response object.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getResponse()
|
public function getResponse()
|
||||||
{
|
{
|
||||||
@ -58,8 +54,6 @@ class FilterResponseEvent extends KernelEvent
|
|||||||
* Sets a new response object.
|
* Sets a new response object.
|
||||||
*
|
*
|
||||||
* @param Response $response
|
* @param Response $response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setResponse(Response $response)
|
public function setResponse(Response $response)
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
* response is set.
|
* response is set.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class GetResponseEvent extends KernelEvent
|
class GetResponseEvent extends KernelEvent
|
||||||
{
|
{
|
||||||
@ -37,8 +35,6 @@ class GetResponseEvent extends KernelEvent
|
|||||||
* Returns the response object.
|
* Returns the response object.
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return Response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getResponse()
|
public function getResponse()
|
||||||
{
|
{
|
||||||
@ -49,8 +45,6 @@ class GetResponseEvent extends KernelEvent
|
|||||||
* Sets a response and stops event propagation.
|
* Sets a response and stops event propagation.
|
||||||
*
|
*
|
||||||
* @param Response $response
|
* @param Response $response
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setResponse(Response $response)
|
public function setResponse(Response $response)
|
||||||
{
|
{
|
||||||
@ -63,8 +57,6 @@ class GetResponseEvent extends KernelEvent
|
|||||||
* Returns whether a response was set.
|
* Returns whether a response was set.
|
||||||
*
|
*
|
||||||
* @return bool Whether a response was set
|
* @return bool Whether a response was set
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function hasResponse()
|
public function hasResponse()
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
* response is set.
|
* response is set.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class GetResponseForControllerResultEvent extends GetResponseEvent
|
class GetResponseForControllerResultEvent extends GetResponseEvent
|
||||||
{
|
{
|
||||||
@ -45,8 +43,6 @@ class GetResponseForControllerResultEvent extends GetResponseEvent
|
|||||||
* Returns the return value of the controller.
|
* Returns the return value of the controller.
|
||||||
*
|
*
|
||||||
* @return mixed The controller return value
|
* @return mixed The controller return value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getControllerResult()
|
public function getControllerResult()
|
||||||
{
|
{
|
||||||
@ -57,8 +53,6 @@ class GetResponseForControllerResultEvent extends GetResponseEvent
|
|||||||
* Assigns the return value of the controller.
|
* Assigns the return value of the controller.
|
||||||
*
|
*
|
||||||
* @param mixed $controllerResult The controller return value
|
* @param mixed $controllerResult The controller return value
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setControllerResult($controllerResult)
|
public function setControllerResult($controllerResult)
|
||||||
{
|
{
|
||||||
|
@ -26,8 +26,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
* event.
|
* event.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class GetResponseForExceptionEvent extends GetResponseEvent
|
class GetResponseForExceptionEvent extends GetResponseEvent
|
||||||
{
|
{
|
||||||
@ -49,8 +47,6 @@ class GetResponseForExceptionEvent extends GetResponseEvent
|
|||||||
* Returns the thrown exception.
|
* Returns the thrown exception.
|
||||||
*
|
*
|
||||||
* @return \Exception The thrown exception
|
* @return \Exception The thrown exception
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getException()
|
public function getException()
|
||||||
{
|
{
|
||||||
@ -63,8 +59,6 @@ class GetResponseForExceptionEvent extends GetResponseEvent
|
|||||||
* This exception will be thrown if no response is set in the event.
|
* This exception will be thrown if no response is set in the event.
|
||||||
*
|
*
|
||||||
* @param \Exception $exception The thrown exception
|
* @param \Exception $exception The thrown exception
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function setException(\Exception $exception)
|
public function setException(\Exception $exception)
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,6 @@ use Symfony\Component\EventDispatcher\Event;
|
|||||||
* Base class for events thrown in the HttpKernel component.
|
* Base class for events thrown in the HttpKernel component.
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class KernelEvent extends Event
|
class KernelEvent extends Event
|
||||||
{
|
{
|
||||||
@ -57,8 +55,6 @@ class KernelEvent extends Event
|
|||||||
* Returns the kernel in which this event was thrown.
|
* Returns the kernel in which this event was thrown.
|
||||||
*
|
*
|
||||||
* @return HttpKernelInterface
|
* @return HttpKernelInterface
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getKernel()
|
public function getKernel()
|
||||||
{
|
{
|
||||||
@ -69,8 +65,6 @@ class KernelEvent extends Event
|
|||||||
* Returns the request the kernel is currently processing.
|
* Returns the request the kernel is currently processing.
|
||||||
*
|
*
|
||||||
* @return Request
|
* @return Request
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
{
|
{
|
||||||
@ -82,8 +76,6 @@ class KernelEvent extends Event
|
|||||||
*
|
*
|
||||||
* @return int One of HttpKernelInterface::MASTER_REQUEST and
|
* @return int One of HttpKernelInterface::MASTER_REQUEST and
|
||||||
* HttpKernelInterface::SUB_REQUEST
|
* HttpKernelInterface::SUB_REQUEST
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function getRequestType()
|
public function getRequestType()
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
* Cache provides HTTP caching.
|
* Cache provides HTTP caching.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class HttpCache implements HttpKernelInterface, TerminableInterface
|
class HttpCache implements HttpKernelInterface, TerminableInterface
|
||||||
{
|
{
|
||||||
@ -164,8 +162,6 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
|
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
|
||||||
{
|
{
|
||||||
@ -217,8 +213,6 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function terminate(Request $request, Response $response)
|
public function terminate(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
|
@ -28,8 +28,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|||||||
* HttpKernel notifies events to convert a Request object to a Response one.
|
* HttpKernel notifies events to convert a Request object to a Response one.
|
||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class HttpKernel implements HttpKernelInterface, TerminableInterface
|
class HttpKernel implements HttpKernelInterface, TerminableInterface
|
||||||
{
|
{
|
||||||
@ -41,8 +39,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
|
|||||||
*
|
*
|
||||||
* @param EventDispatcherInterface $dispatcher An EventDispatcherInterface instance
|
* @param EventDispatcherInterface $dispatcher An EventDispatcherInterface instance
|
||||||
* @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
|
* @param ControllerResolverInterface $resolver A ControllerResolverInterface instance
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver)
|
public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver)
|
||||||
{
|
{
|
||||||
@ -52,8 +48,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
|
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
|
||||||
{
|
{
|
||||||
@ -70,8 +64,6 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
public function terminate(Request $request, Response $response)
|
public function terminate(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user