Skip to content

Commit ea43304

Browse files
committed
feature #15805 [Finder] Deprecate adapters and related classes (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [Finder] Deprecate adapters and related classes | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- c08cf4b [Finder] Deprecate adapters and related classes
2 parents 926d9b7 + c08cf4b commit ea43304

20 files changed

+255
-34
lines changed

src/Symfony/Component/Finder/Adapter/AbstractAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
namespace Symfony\Component\Finder\Adapter;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\AbstractAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* Interface for finder engine implementations.
1618
*
1719
* @author Jean-François Simon <contact@jfsimon.fr>
20+
*
21+
* @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
1822
*/
1923
abstract class AbstractAdapter implements AdapterInterface
2024
{

src/Symfony/Component/Finder/Adapter/AbstractFindAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Finder\Adapter;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\AbstractFindAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Exception\AccessDeniedException;
1517
use Symfony\Component\Finder\Iterator;
1618
use Symfony\Component\Finder\Shell\Shell;
@@ -23,6 +25,8 @@
2325
* Shell engine implementation using GNU find command.
2426
*
2527
* @author Jean-François Simon <contact@jfsimon.fr>
28+
*
29+
* @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
2630
*/
2731
abstract class AbstractFindAdapter extends AbstractAdapter
2832
{

src/Symfony/Component/Finder/Adapter/AdapterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* @author Jean-François Simon <contact@jfsimon.fr>
16+
*
17+
* @deprecated since 2.8, to be removed in 3.0.
1618
*/
1719
interface AdapterInterface
1820
{

src/Symfony/Component/Finder/Adapter/BsdFindAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Finder\Adapter;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\BsdFindAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Shell\Shell;
1517
use Symfony\Component\Finder\Shell\Command;
1618
use Symfony\Component\Finder\Iterator\SortableIterator;
@@ -20,6 +22,8 @@
2022
* Shell engine implementation using BSD find command.
2123
*
2224
* @author Jean-François Simon <contact@jfsimon.fr>
25+
*
26+
* @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
2327
*/
2428
class BsdFindAdapter extends AbstractFindAdapter
2529
{

src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Finder\Adapter;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\GnuFindAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Shell\Shell;
1517
use Symfony\Component\Finder\Shell\Command;
1618
use Symfony\Component\Finder\Iterator\SortableIterator;
@@ -20,6 +22,8 @@
2022
* Shell engine implementation using GNU find command.
2123
*
2224
* @author Jean-François Simon <contact@jfsimon.fr>
25+
*
26+
* @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
2327
*/
2428
class GnuFindAdapter extends AbstractFindAdapter
2529
{

src/Symfony/Component/Finder/Adapter/PhpAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111

1212
namespace Symfony\Component\Finder\Adapter;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\PhpAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Iterator;
1517

1618
/**
1719
* PHP finder engine implementation.
1820
*
1921
* @author Jean-François Simon <contact@jfsimon.fr>
22+
*
23+
* @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
2024
*/
2125
class PhpAdapter extends AbstractAdapter
2226
{

src/Symfony/Component/Finder/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.8.0
5+
-----
6+
7+
* deprecated adapters and related classes
8+
49
2.5.0
510
-----
611
* added support for GLOB_BRACE in the paths passed to Finder::in()

src/Symfony/Component/Finder/Exception/AdapterFailureException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111

1212
namespace Symfony\Component\Finder\Exception;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\AdapterFailureException class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Adapter\AdapterInterface;
1517

1618
/**
1719
* Base exception for all adapter failures.
1820
*
1921
* @author Jean-François Simon <contact@jfsimon.fr>
22+
*
23+
* @deprecated since 2.8, to be removed in 3.0.
2024
*/
2125
class AdapterFailureException extends \RuntimeException implements ExceptionInterface
2226
{

src/Symfony/Component/Finder/Exception/OperationNotPermitedException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111

1212
namespace Symfony\Component\Finder\Exception;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\OperationNotPermitedException class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
15+
1416
/**
1517
* @author Jean-François Simon <contact@jfsimon.fr>
18+
*
19+
* @deprecated since 2.8, to be removed in 3.0.
1620
*/
1721
class OperationNotPermitedException extends AdapterFailureException
1822
{

src/Symfony/Component/Finder/Exception/ShellCommandFailureException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111

1212
namespace Symfony\Component\Finder\Exception;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\ShellCommandFailureException class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Finder\Adapter\AdapterInterface;
1517
use Symfony\Component\Finder\Shell\Command;
1618

1719
/**
1820
* @author Jean-François Simon <contact@jfsimon.fr>
21+
*
22+
* @deprecated since 2.8, to be removed in 3.0.
1923
*/
2024
class ShellCommandFailureException extends AdapterFailureException
2125
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy