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:
parent
4afb23bbd3
commit
7784f4c23d
929 changed files with 19798 additions and 5304 deletions
43
vendor/symfony/browser-kit/Client.php
vendored
43
vendor/symfony/browser-kit/Client.php
vendored
|
@ -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()
|
||||
{
|
||||
|
|
Reference in a new issue