Update to Drupal 8.0-dev-2015-11-17. Commits through da81cd220, Tue Nov 17 15:53:49 2015 +0000, Issue #2617224 by Wim Leers: Move around/fix some documentation.

This commit is contained in:
Pantheon Automation 2015-11-17 13:42:33 -08:00 committed by Greg Anderson
parent 4afb23bbd3
commit 7784f4c23d
929 changed files with 19798 additions and 5304 deletions

View file

@ -25,8 +25,6 @@ use Symfony\Component\Process\PhpProcess;
* you need to also implement the getScript() method.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
abstract class Client
{
@ -52,8 +50,6 @@ abstract class Client
* @param array $server The server parameters (equivalent of $_SERVER)
* @param History $history A History instance to store the browser history
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
*
* @api
*/
public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
{
@ -66,8 +62,6 @@ abstract class Client
* Sets whether to automatically follow redirects or not.
*
* @param bool $followRedirect Whether to follow redirects
*
* @api
*/
public function followRedirects($followRedirect = true)
{
@ -91,8 +85,6 @@ abstract class Client
* @param bool $insulated Whether to insulate the requests or not
*
* @throws \RuntimeException When Symfony Process Component is not installed
*
* @api
*/
public function insulate($insulated = true)
{
@ -107,8 +99,6 @@ abstract class Client
* Sets server parameters.
*
* @param array $server An array of server parameters
*
* @api
*/
public function setServerParameters(array $server)
{
@ -146,8 +136,6 @@ abstract class Client
* Returns the History instance.
*
* @return History A History instance
*
* @api
*/
public function getHistory()
{
@ -158,8 +146,6 @@ abstract class Client
* Returns the CookieJar instance.
*
* @return CookieJar A CookieJar instance
*
* @api
*/
public function getCookieJar()
{
@ -170,8 +156,6 @@ abstract class Client
* Returns the current Crawler instance.
*
* @return Crawler|null A Crawler instance
*
* @api
*/
public function getCrawler()
{
@ -182,8 +166,6 @@ abstract class Client
* Returns the current BrowserKit Response instance.
*
* @return Response|null A BrowserKit Response instance
*
* @api
*/
public function getInternalResponse()
{
@ -199,8 +181,6 @@ abstract class Client
* @return object|null A response instance
*
* @see doRequest()
*
* @api
*/
public function getResponse()
{
@ -211,8 +191,6 @@ abstract class Client
* Returns the current BrowserKit Request instance.
*
* @return Request|null A BrowserKit Request instance
*
* @api
*/
public function getInternalRequest()
{
@ -228,8 +206,6 @@ abstract class Client
* @return object|null A Request instance
*
* @see doRequest()
*
* @api
*/
public function getRequest()
{
@ -242,8 +218,6 @@ abstract class Client
* @param Link $link A Link instance
*
* @return Crawler
*
* @api
*/
public function click(Link $link)
{
@ -261,8 +235,6 @@ abstract class Client
* @param array $values An array of form field values
*
* @return Crawler
*
* @api
*/
public function submit(Form $form, array $values = array())
{
@ -283,8 +255,6 @@ abstract class Client
* @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())
*
* @return Crawler
*
* @api
*/
public function request($method, $uri, array $parameters = array(), array $files = array(), array $server = array(), $content = null, $changeHistory = true)
{
@ -357,8 +327,7 @@ abstract class Client
*/
protected function doRequestInProcess($request)
{
// We set the TMPDIR (for Macs) and TEMP (for Windows), because on these platforms the temp directory changes based on the user.
$process = new PhpProcess($this->getScript($request), null, array('TMPDIR' => sys_get_temp_dir(), 'TEMP' => sys_get_temp_dir()));
$process = new PhpProcess($this->getScript($request), null, null);
$process->run();
if (!$process->isSuccessful() || !preg_match('/^O\:\d+\:/', $process->getOutput())) {
@ -440,8 +409,6 @@ abstract class Client
* Goes back in the browser history.
*
* @return Crawler
*
* @api
*/
public function back()
{
@ -452,8 +419,6 @@ abstract class Client
* Goes forward in the browser history.
*
* @return Crawler
*
* @api
*/
public function forward()
{
@ -464,8 +429,6 @@ abstract class Client
* Reloads the current browser.
*
* @return Crawler
*
* @api
*/
public function reload()
{
@ -478,8 +441,6 @@ abstract class Client
* @return Crawler
*
* @throws \LogicException If request was not a redirect
*
* @api
*/
public function followRedirect()
{
@ -528,8 +489,6 @@ abstract class Client
* Restarts the client.
*
* It flushes history and all cookies.
*
* @api
*/
public function restart()
{

View file

@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
* Cookie represents an HTTP cookie.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class Cookie
{
@ -56,8 +54,6 @@ class Cookie
* @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
* @param bool $httponly The cookie httponly flag
* @param bool $encodedValue Whether the value is encoded or not
*
* @api
*/
public function __construct($name, $value, $expires = null, $path = null, $domain = '', $secure = false, $httponly = true, $encodedValue = false)
{
@ -90,8 +86,6 @@ class Cookie
* @return string The HTTP representation of the Cookie
*
* @throws \UnexpectedValueException
*
* @api
*/
public function __toString()
{
@ -130,8 +124,6 @@ class Cookie
* @return Cookie A Cookie instance
*
* @throws \InvalidArgumentException
*
* @api
*/
public static function fromString($cookie, $url = null)
{
@ -229,8 +221,6 @@ class Cookie
* Gets the name of the cookie.
*
* @return string The cookie name
*
* @api
*/
public function getName()
{
@ -241,8 +231,6 @@ class Cookie
* Gets the value of the cookie.
*
* @return string The cookie value
*
* @api
*/
public function getValue()
{
@ -253,8 +241,6 @@ class Cookie
* Gets the raw value of the cookie.
*
* @return string The cookie value
*
* @api
*/
public function getRawValue()
{
@ -265,8 +251,6 @@ class Cookie
* Gets the expires time of the cookie.
*
* @return string The cookie expires time
*
* @api
*/
public function getExpiresTime()
{
@ -277,8 +261,6 @@ class Cookie
* Gets the path of the cookie.
*
* @return string The cookie path
*
* @api
*/
public function getPath()
{
@ -289,8 +271,6 @@ class Cookie
* Gets the domain of the cookie.
*
* @return string The cookie domain
*
* @api
*/
public function getDomain()
{
@ -301,8 +281,6 @@ class Cookie
* Returns the secure flag of the cookie.
*
* @return bool The cookie secure flag
*
* @api
*/
public function isSecure()
{
@ -313,8 +291,6 @@ class Cookie
* Returns the httponly flag of the cookie.
*
* @return bool The cookie httponly flag
*
* @api
*/
public function isHttpOnly()
{
@ -325,8 +301,6 @@ class Cookie
* Returns true if the cookie has expired.
*
* @return bool true if the cookie has expired, false otherwise
*
* @api
*/
public function isExpired()
{

View file

@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
* CookieJar.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class CookieJar
{
@ -26,8 +24,6 @@ class CookieJar
* Sets a cookie.
*
* @param Cookie $cookie A Cookie instance
*
* @api
*/
public function set(Cookie $cookie)
{
@ -47,8 +43,6 @@ class CookieJar
* @param string $domain The cookie domain
*
* @return Cookie|null A Cookie instance or null if the cookie does not exist
*
* @api
*/
public function get($name, $path = '/', $domain = null)
{
@ -94,8 +88,6 @@ class CookieJar
* @param string $name The cookie name
* @param string $path The cookie path
* @param string $domain The cookie domain
*
* @api
*/
public function expire($name, $path = '/', $domain = null)
{
@ -126,8 +118,6 @@ class CookieJar
/**
* Removes all the cookies from the jar.
*
* @api
*/
public function clear()
{

View file

@ -3,7 +3,7 @@ BrowserKit Component
BrowserKit simulates the behavior of a web browser.
The component only provide an abstract client and does not provide any
The component only provides an abstract client and does not provide any
"default" backend for the HTTP layer.
Resources

View file

@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
* Request object.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class Request
{
@ -38,8 +36,6 @@ class Request
* @param array $cookies An array of cookies
* @param array $server An array of server parameters
* @param string $content The raw body data
*
* @api
*/
public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null)
{
@ -56,8 +52,6 @@ class Request
* Gets the request URI.
*
* @return string The request URI
*
* @api
*/
public function getUri()
{
@ -68,8 +62,6 @@ class Request
* Gets the request HTTP method.
*
* @return string The request HTTP method
*
* @api
*/
public function getMethod()
{
@ -80,8 +72,6 @@ class Request
* Gets the request parameters.
*
* @return array The request parameters
*
* @api
*/
public function getParameters()
{
@ -92,8 +82,6 @@ class Request
* Gets the request server files.
*
* @return array The request files
*
* @api
*/
public function getFiles()
{
@ -104,8 +92,6 @@ class Request
* Gets the request cookies.
*
* @return array The request cookies
*
* @api
*/
public function getCookies()
{
@ -116,8 +102,6 @@ class Request
* Gets the request server parameters.
*
* @return array The request server parameters
*
* @api
*/
public function getServer()
{
@ -128,8 +112,6 @@ class Request
* Gets the request raw body data.
*
* @return string The request raw body data.
*
* @api
*/
public function getContent()
{

View file

@ -15,8 +15,6 @@ namespace Symfony\Component\BrowserKit;
* Response object.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class Response
{
@ -33,8 +31,6 @@ class Response
* @param string $content The content of the response
* @param int $status The response status code
* @param array $headers An array of headers
*
* @api
*/
public function __construct($content = '', $status = 200, array $headers = array())
{
@ -81,8 +77,6 @@ class Response
* Gets the response content.
*
* @return string The response content
*
* @api
*/
public function getContent()
{
@ -93,8 +87,6 @@ class Response
* Gets the response status code.
*
* @return int The response status code
*
* @api
*/
public function getStatus()
{
@ -105,8 +97,6 @@ class Response
* Gets the response headers.
*
* @return array The response headers
*
* @api
*/
public function getHeaders()
{

View file

@ -20,8 +20,7 @@
"symfony/dom-crawler": "~2.0,>=2.0.5"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7",
"symfony/process": "~2.0,>=2.0.5",
"symfony/process": "~2.3.34|~2.7,>=2.7.6",
"symfony/css-selector": "~2.0,>=2.0.5"
},
"suggest": {