Larval framework upated to v5.6.33

Updated laravel frameowrk version to as suggested for security patch update which was released in v5.6.30
This commit is contained in:
Manish Verma
2018-08-15 18:38:24 +05:30
parent 5d3ffdf379
commit 8148bbd920
319 changed files with 647 additions and 1078 deletions

0
vendor/laravel/dusk/bin/chromedriver-linux vendored Normal file → Executable file
View File

0
vendor/laravel/dusk/bin/chromedriver-mac vendored Normal file → Executable file
View File

0
vendor/laravel/dusk/bin/chromedriver-win.exe vendored Normal file → Executable file
View File

View File

@@ -268,6 +268,23 @@ class Browser
return $this;
}
/**
* Switch to a specified frame in the browser.
*
* @param string $selector
* @return $this
*/
public function withinFrame($selector, Closure $callback)
{
$this->driver->switchTo()->frame($this->resolver->findOrFail($selector));
$callback($this);
$this->driver->switchTo()->defaultContent();
return $this;
}
/**
* Execute a Closure with a scoped browser instance.
*
@@ -306,6 +323,13 @@ class Browser
return $this;
}
/**
* Set the current component state.
*
* @param \Laravel\Dusk\Component $component
* @param \Laravel\Dusk\ElementResolver $parentResolver
* @return void
*/
public function onComponent($component, $parentResolver)
{
$this->component = $component;

View File

@@ -98,7 +98,7 @@ trait InteractsWithMouse
}
/**
* Release the currenctly clicked mouse button.
* Release the currently clicked mouse button.
*
* @return $this
*/

View File

@@ -271,13 +271,16 @@ trait MakesAssertions
/**
* Assert that the given cookie is present.
*
* @param string $name
* @param string $name
* @param bool $decrypt
* @return $this
*/
public function assertHasCookie($name)
public function assertHasCookie($name, $decrypt = true)
{
$cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);
PHPUnit::assertTrue(
! is_null($this->cookie($name)),
! is_null($cookie),
"Did not find expected cookie [{$name}]."
);
@@ -285,21 +288,46 @@ trait MakesAssertions
}
/**
* Assert that the given cookie is not present.
* Assert that the given plain cookie is present.
*
* @param string $name
* @return $this
*/
public function assertCookieMissing($name)
public function assertHasPlainCookie($name)
{
return $this->assertHasCookie($name, false);
}
/**
* Assert that the given cookie is not present.
*
* @param string $name
* @param bool $decrypt
* @return $this
*/
public function assertCookieMissing($name, $decrypt = true)
{
$cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);
PHPUnit::assertTrue(
is_null($this->cookie($name)),
is_null($cookie),
"Found unexpected cookie [{$name}]."
);
return $this;
}
/**
* Assert that the given plain cookie is not present.
*
* @param string $name
* @return $this
*/
public function assertPlainCookieMissing($name)
{
return $this->assertCookieMissing($name, false);
}
/**
* Assert that an encrypted cookie has a given value.
*

View File

@@ -85,6 +85,7 @@ trait ProvidesBrowser
*
* @param \Closure $callback
* @return array
* @throws \ReflectionException
*/
protected function createBrowsersFor(Closure $callback)
{
@@ -117,6 +118,7 @@ trait ProvidesBrowser
*
* @param \Closure $callback
* @return int
* @throws \ReflectionException
*/
protected function browsersNeededFor(Closure $callback)
{
@@ -182,6 +184,7 @@ trait ProvidesBrowser
* Create the remote web driver instance.
*
* @return \Facebook\WebDriver\Remote\RemoteWebDriver
* @throws \Exception
*/
protected function createWebDriver()
{

View File

@@ -19,6 +19,7 @@ trait WaitsForElements
* @param Closure $callback
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function whenAvailable($selector, Closure $callback, $seconds = null)
{
@@ -31,6 +32,7 @@ trait WaitsForElements
* @param string $selector
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitFor($selector, $seconds = null)
{
@@ -45,6 +47,7 @@ trait WaitsForElements
* @param string $selector
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUntilMissing($selector, $seconds = null)
{
@@ -65,6 +68,7 @@ trait WaitsForElements
* @param string $text
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForText($text, $seconds = null)
{
@@ -79,12 +83,13 @@ trait WaitsForElements
* @param string $link
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForLink($link, $seconds = null)
{
return $this->waitUsing($seconds, 100, function () use ($link) {
return $this->seeLink($link);
});
}, "Waited %s seconds for link [{$link}].");
}
/**
@@ -93,10 +98,11 @@ trait WaitsForElements
* @param string $path
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForLocation($path, $seconds = null)
{
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds);
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds, "Waited %s seconds for location [{$path}].");
}
/**
@@ -106,10 +112,11 @@ trait WaitsForElements
* @param array $parameters
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForRoute($route, $parameters = [], $seconds = null)
{
return $this->waitForLocation(route($route, $parameters), $seconds);
return $this->waitForLocation(route($route, $parameters, false), $seconds);
}
/**
@@ -117,9 +124,11 @@ trait WaitsForElements
*
* @param string $script
* @param int $seconds
* @param string $message
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUntil($script, $seconds = null)
public function waitUntil($script, $seconds = null, $message = null)
{
if (! Str::startsWith($script, 'return ')) {
$script = 'return '.$script;
@@ -131,7 +140,7 @@ trait WaitsForElements
return $this->waitUsing($seconds, 100, function () use ($script) {
return $this->driver->executeScript($script);
});
}, $message);
}
/**
@@ -157,6 +166,7 @@ trait WaitsForElements
* @param Closure $callback
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForReload($callback = null, $seconds = null)
{
@@ -181,7 +191,7 @@ trait WaitsForElements
* @param Closure $callback
* @param string|null $message
* @return $this
* @throws TimeOutException
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUsing($seconds, $interval, Closure $callback, $message = null)
{

View File

@@ -77,6 +77,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForTyping($field)
{
@@ -94,6 +95,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForSelection($field)
{
@@ -112,6 +114,7 @@ class ElementResolver
* @param string $field
* @param array $values
* @return \Facebook\WebDriver\Remote\RemoteWebElement[]
* @throws \Exception
*/
public function resolveSelectOptions($field, array $values)
{
@@ -133,6 +136,7 @@ class ElementResolver
* @param string $field
* @param string $value
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForRadioSelection($field, $value = null)
{
@@ -157,6 +161,7 @@ class ElementResolver
* @param string $field
* @param string $value
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForChecking($field, $value = null)
{
@@ -180,6 +185,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForAttachment($field)
{
@@ -197,6 +203,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForField($field)
{
@@ -320,6 +327,7 @@ class ElementResolver
*
* @param array $selectors
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function firstOrFail($selectors)
{

View File

@@ -1,45 +0,0 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></a></p>
<p align="center">
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
</p>
## About Laravel
> **Note:** This repository contains the core code of the Laravel framework. If you want to build an application using Laravel 5, visit the main [Laravel repository](https://github.com/laravel/laravel).
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation gives you a complete toolset required to build any application with which you are tasked
## Learning Laravel
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The [Laravel documentation](https://laravel.com/docs) is in-depth and complete, making it a breeze to get started learning the framework.
If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials covering a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0
vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php vendored Normal file → Executable file
View File

View File

View File

View File

0
vendor/laravel/framework/src/Illuminate/Auth/GenericUser.php vendored Normal file → Executable file
View File

View File

View File

View File

View File

@@ -21,7 +21,7 @@ class Recaller
*/
public function __construct($recaller)
{
$this->recaller = $recaller;
$this->recaller = @unserialize($recaller, ['allowed_classes' => false]) ?: $recaller;
}
/**

0
vendor/laravel/framework/src/Illuminate/Cache/ApcStore.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php vendored Normal file → Executable file
View File

View File

View File

View File

0
vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/FileStore.php vendored Normal file → Executable file
View File

View File

0
vendor/laravel/framework/src/Illuminate/Cache/MemcachedStore.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/NullStore.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/Repository.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cache/composer.json vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Config/composer.json vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Console/Application.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Console/Command.php vendored Normal file → Executable file
View File

View File

@@ -35,6 +35,8 @@ class Parser
*
* @param string $expression
* @return string
*
* @throws \InvalidArgumentException
*/
protected static function name($expression)
{

0
vendor/laravel/framework/src/Illuminate/Console/composer.json vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Container/Container.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Container/composer.json vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

@@ -23,7 +23,7 @@ interface Validator extends MessageProvider
/**
* Add conditions to a given field based on a Closure.
*
* @param string $attribute
* @param string|array $attribute
* @param string|array $rules
* @param callable $callback
* @return $this

0
vendor/laravel/framework/src/Illuminate/Contracts/View/Engine.php vendored Normal file → Executable file
View File

0
vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php vendored Normal file → Executable file
View File

View File

View File

@@ -25,6 +25,13 @@ class EncryptCookies
*/
protected $except = [];
/**
* Indicates if cookies should be serialized.
*
* @var bool
*/
protected static $serialize = false;
/**
* Create a new CookieGuard instance.
*
@@ -73,7 +80,7 @@ class EncryptCookies
}
try {
$request->cookies->set($key, $this->decryptCookie($cookie));
$request->cookies->set($key, $this->decryptCookie($key, $cookie));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}
@@ -85,14 +92,15 @@ class EncryptCookies
/**
* Decrypt the given cookie and return the value.
*
* @param string $name
* @param string|array $cookie
* @return string|array
*/
protected function decryptCookie($cookie)
protected function decryptCookie($name, $cookie)
{
return is_array($cookie)
? $this->decryptArray($cookie)
: $this->encrypter->decrypt($cookie);
: $this->encrypter->decrypt($cookie, static::serialized($name));
}
/**
@@ -107,7 +115,7 @@ class EncryptCookies
foreach ($cookie as $key => $value) {
if (is_string($value)) {
$decrypted[$key] = $this->encrypter->decrypt($value);
$decrypted[$key] = $this->encrypter->decrypt($value, static::serialized($key));
}
}
@@ -128,7 +136,7 @@ class EncryptCookies
}
$response->headers->setCookie($this->duplicate(
$cookie, $this->encrypter->encrypt($cookie->getValue())
$cookie, $this->encrypter->encrypt($cookie->getValue(), static::serialized($cookie->getName()))
));
}
@@ -161,4 +169,15 @@ class EncryptCookies
{
return in_array($name, $this->except);
}
/**
* Determine if the cookie contents should be serialized.
*
* @param string $name
* @return bool
*/
public static function serialized($name)
{
return static::$serialize;
}
}

0
vendor/laravel/framework/src/Illuminate/Cookie/composer.json vendored Normal file → Executable file
View File

View File

View File

@@ -83,7 +83,7 @@ trait BuildsQueries
* @param mixed $value
* @param callable $callback
* @param callable $default
* @return mixed
* @return mixed|$this
*/
public function when($value, $callback, $default = null)
{
@@ -113,7 +113,7 @@ trait BuildsQueries
* @param mixed $value
* @param callable $callback
* @param callable $default
* @return mixed
* @return mixed|$this
*/
public function unless($value, $callback, $default = null)
{

0
vendor/laravel/framework/src/Illuminate/Database/Connection.php vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -312,7 +312,7 @@ class Builder
*
* @param mixed $id
* @param array $columns
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
@@ -612,7 +612,7 @@ class Builder
*
* @param int $count
* @param callable $callback
* @param string $column
* @param string|null $column
* @param string|null $alias
* @return bool
*/

View File

View File

View File

View File

View File

@@ -425,6 +425,16 @@ class HasManyThrough extends Relation
return $this->prepareQueryBuilder()->chunk($count, $callback);
}
/**
* Get a generator for the given query.
*
* @return \Generator
*/
public function cursor()
{
return $this->prepareQueryBuilder()->cursor();
}
/**
* Execute a callback over each item while chunking.
*

View File

View File

View File

View File

View File

View File

0
vendor/laravel/framework/src/Illuminate/Database/Grammar.php vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More