8000 [Cache] Normalize constructor arguments order · symfony/symfony@bc51fde · GitHub
[go: up one dir, main page]

Skip to content

Commit bc51fde

Browse files
[Cache] Normalize constructor arguments order
1 parent a9dcce1 commit bc51fde

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Symfony/Component/Cache/Adapter/DoctrineAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DoctrineAdapter extends AbstractAdapter
2020
{
2121
private $provider;
2222

23-
public function __construct(CacheProvider $provider, $defaultLifetime = 0, $namespace = '')
23+
public function __construct(CacheProvider $provider, $namespace = '', $defaultLifetime = 0)
2424
{
2525
parent::__construct('', $defaultLifetime);
2626
$this->provider = $provider;

src/Symfony/Component/Cache/Adapter/FilesystemAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FilesystemAdapter extends AbstractAdapter
2020
{
2121
private $directory;
2222

23-
public function __construct($directory, $defaultLifetime = 0, $namespace = '')
23+
public function __construct($namespace = '', $defaultLifetime = 0, $directory = null)
2424
{
2525
parent::__construct('', $defaultLifetime);
2626

src/Symfony/Component/Cache/Adapter/ProxyAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ProxyAdapter implements AdapterInterface
2828
private $hits = 0;
2929
private $misses = 0;
3030

31-
public function __construct(CacheItemPoolInterface $pool, $defaultLifetime = 0, $namespace = '')
31+
public function __construct(CacheItemPoolInterface $pool, $namespace = '', $defaultLifetime = 0)
3232
{
3333
$this->pool = $pool;
3434
$this->namespace = $this->getId($namespace, true);

src/Symfony/Component/Cache/Tests/Adapter/ChainAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function createCachePool()
2828
$this->skippedTests['testDeferredSaveWithoutCommit'] = 'Fails on HHVM';
2929
}
3030

31-
return new ChainAdapter(array(new ArrayAdapter(), new ExternalAdapter(), new FilesystemAdapter(null)));
31+
return new ChainAdapter(array(new ArrayAdapter(), new ExternalAdapter(), new FilesystemAdapter()));
3232
}
3333

3434
/**

src/Symfony/Component/Cache/Tests/Adapter/NamespacedProxyAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class NamespacedProxyAdapterTest extends ProxyAdapterTest
2121
{
2222
public function createCachePool()
2323
{
24-
return new ProxyAdapter(new ArrayAdapter(), 0, 'foo');
24+
return new ProxyAdapter(new ArrayAdapter(), 'foo');
2525
}
2626
}

0 commit comments

Comments
 (0)
0