Laravel version update
Laravel version update
This commit is contained in:
37
vendor/symfony/http-kernel/Tests/Fixtures/123/Kernel123.php
vendored
Normal file
37
vendor/symfony/http-kernel/Tests/Fixtures/123/Kernel123.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\_123;
|
||||
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
class Kernel123 extends Kernel
|
||||
{
|
||||
public function registerBundles()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function registerContainerConfiguration(LoaderInterface $loader)
|
||||
{
|
||||
}
|
||||
|
||||
public function getCacheDir()
|
||||
{
|
||||
return sys_get_temp_dir().'/'.Kernel::VERSION.'/kernel123/cache/'.$this->environment;
|
||||
}
|
||||
|
||||
public function getLogDir()
|
||||
{
|
||||
return sys_get_temp_dir().'/'.Kernel::VERSION.'/kernel123/logs';
|
||||
}
|
||||
}
|
13
vendor/symfony/http-kernel/Tests/Fixtures/ClearableService.php
vendored
Normal file
13
vendor/symfony/http-kernel/Tests/Fixtures/ClearableService.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures;
|
||||
|
||||
class ClearableService
|
||||
{
|
||||
public static $counter = 0;
|
||||
|
||||
public function clear()
|
||||
{
|
||||
++self::$counter;
|
||||
}
|
||||
}
|
19
vendor/symfony/http-kernel/Tests/Fixtures/Controller/BasicTypesController.php
vendored
Normal file
19
vendor/symfony/http-kernel/Tests/Fixtures/Controller/BasicTypesController.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller;
|
||||
|
||||
class BasicTypesController
|
||||
{
|
||||
public function action(string $foo, int $bar, float $baz)
|
||||
{
|
||||
}
|
||||
}
|
18
vendor/symfony/http-kernel/Tests/Fixtures/Controller/ExtendingRequest.php
vendored
Normal file
18
vendor/symfony/http-kernel/Tests/Fixtures/Controller/ExtendingRequest.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class ExtendingRequest extends Request
|
||||
{
|
||||
}
|
18
vendor/symfony/http-kernel/Tests/Fixtures/Controller/ExtendingSession.php
vendored
Normal file
18
vendor/symfony/http-kernel/Tests/Fixtures/Controller/ExtendingSession.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Session\Session;
|
||||
|
||||
class ExtendingSession extends Session
|
||||
{
|
||||
}
|
19
vendor/symfony/http-kernel/Tests/Fixtures/Controller/NullableController.php
vendored
Normal file
19
vendor/symfony/http-kernel/Tests/Fixtures/Controller/NullableController.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller;
|
||||
|
||||
class NullableController
|
||||
{
|
||||
public function action(?string $foo, ?\stdClass $bar, ?string $baz = 'value', $mandatory)
|
||||
{
|
||||
}
|
||||
}
|
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\Controller;
|
||||
|
||||
class VariadicController
|
||||
|
46
vendor/symfony/http-kernel/Tests/Fixtures/DataCollector/CloneVarDataCollector.php
vendored
Normal file
46
vendor/symfony/http-kernel/Tests/Fixtures/DataCollector/CloneVarDataCollector.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures\DataCollector;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
|
||||
|
||||
class CloneVarDataCollector extends DataCollector
|
||||
{
|
||||
private $varToClone;
|
||||
|
||||
public function __construct($varToClone)
|
||||
{
|
||||
$this->varToClone = $varToClone;
|
||||
}
|
||||
|
||||
public function collect(Request $request, Response $response, \Exception $exception = null)
|
||||
{
|
||||
$this->data = $this->cloneVar($this->varToClone);
|
||||
}
|
||||
|
||||
public function reset()
|
||||
{
|
||||
$this->data = array();
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'clone_var';
|
||||
}
|
||||
}
|
@@ -11,8 +11,8 @@
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
class KernelForOverrideName extends Kernel
|
||||
{
|
||||
|
@@ -11,8 +11,8 @@
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
class KernelForTest extends Kernel
|
||||
{
|
||||
|
33
vendor/symfony/http-kernel/Tests/Fixtures/KernelWithoutBundles.php
vendored
Normal file
33
vendor/symfony/http-kernel/Tests/Fixtures/KernelWithoutBundles.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
class KernelWithoutBundles extends Kernel
|
||||
{
|
||||
public function registerBundles()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function registerContainerConfiguration(LoaderInterface $loader)
|
||||
{
|
||||
}
|
||||
|
||||
protected function build(ContainerBuilder $container)
|
||||
{
|
||||
$container->setParameter('test_executed', true);
|
||||
}
|
||||
}
|
13
vendor/symfony/http-kernel/Tests/Fixtures/ResettableService.php
vendored
Normal file
13
vendor/symfony/http-kernel/Tests/Fixtures/ResettableService.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\HttpKernel\Tests\Fixtures;
|
||||
|
||||
class ResettableService
|
||||
{
|
||||
public static $counter = 0;
|
||||
|
||||
public function reset()
|
||||
{
|
||||
++self::$counter;
|
||||
}
|
||||
}
|
@@ -25,4 +25,8 @@ class TestEventDispatcher extends EventDispatcher implements TraceableEventDispa
|
||||
{
|
||||
return array('bar');
|
||||
}
|
||||
|
||||
public function reset()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user