8000 merged branch janmarek/patch-1 (PR #5202) · sunqipenglib/symfony@5e7723f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e7723f

Browse files
committed
merged branch janmarek/patch-1 (PR symfony#5202)
Commits ------- 890aea2 FileLocatorInterface used in typehint instead of FileLocator Discussion ---------- FileLocatorInterface used in typehint instead of FileLocator --------------------------------------------------------------------------- by stof at 2012-08-30T22:09:39Z @fabpot this makes sense (and it is BC) --------------------------------------------------------------------------- by mvrhov at 2012-08-31T08:34:17Z What's wrong with Interface hint? I always hint interface when available as this means that I can inject whatever class implementing that interface.
2 parents 2cf50b7 + 890aea2 commit 5e7723f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/Loader/FileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\Config\Loader\FileLoader as BaseFileLoader;
16-
use Symfony\Component\Config\FileLocator;
16+
use Symfony\Component\Config\FileLocatorInterface;
1717

1818
/**
1919
* FileLoader is the abstract class used by all built-in loaders that are file based.
@@ -28,9 +28,9 @@ abstract class FileLoader extends BaseFileLoader
2828
* Constructor.
2929
*
3030
* @param ContainerBuilder $container A ContainerBuilder instance
31-
* @param FileLocator $locator A FileLocator instance
31+
* @param FileLocatorInterface $locator A FileLocator instance
3232
*/
33-
public function __construct(ContainerBuilder $container, FileLocator $locator)
33+
public function __construct(ContainerBuilder $container, FileLocatorInterface $locator)
3434
{
3535
$this->container = $container;
3636

0 commit comments

Comments
 (0)
0