Skip to content

Commit

Permalink
moved Resource to the Config component
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 10, 2011
1 parent 51beecc commit f530808
Show file tree
Hide file tree
Showing 40 changed files with 43 additions and 343 deletions.
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* This abstract classes groups common code that Doctrine Object Manager extensions (ORM, MongoDB, CouchDB) need.
Expand Down
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Bundle\DoctrineAbstractBundle\DependencyInjection\AbstractDoctrineExtension;
use Symfony\Component\Config\Loader\FileLocator;

Expand Down
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Loader\FileLocator;
use Symfony\Bundle\DoctrineAbstractBundle\DependencyInjection\AbstractDoctrineExtension;

Expand Down
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Configuration\Processor;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\Loader\FileLocator;
Expand Down
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Parameter;
Expand Down
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Definition;
Expand Down
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\Routing\Resource;
namespace Symfony\Component\Config\Resource;

/**
* FileResource represents a resource stored on the filesystem.
Expand Down
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\Routing\Resource;
namespace Symfony\Component\Config\Resource;

/**
* ResourceInterface is the interface that must be implemented by all Resource classes.
Expand Down
Expand Up @@ -17,8 +17,8 @@
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\DependencyInjection\InterfaceInjector;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\DependencyInjection\Resource\ResourceInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Resource\ResourceInterface;

/**
* ContainerBuilder is a DI container that provides an API to easily describe services.
Expand Down
Expand Up @@ -12,7 +12,7 @@
namespace Symfony\Component\DependencyInjection\Loader;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* IniFileLoader loads parameters from INI files.
Expand Down
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\DependencyInjection\Loader;

use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* PhpFileLoader loads service definitions from a PHP file.
Expand Down
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\SimpleXMLElement;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* XmlFileLoader loads XML files service definitions.
Expand Down
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Yaml;

/**
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -13,7 +13,7 @@

use Doctrine\Common\Annotations\AnnotationReader;
use Symfony\Component\Routing\Annotation\Route as RouteAnnotation;
use Symfony\Component\Routing\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Config\Loader\LoaderInterface;
Expand Down
Expand Up @@ -12,7 +12,7 @@
namespace Symfony\Component\Routing\Loader;

use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Loader\FileLoader;
use Symfony\Component\Config\Loader\FileLocator;

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/PhpFileLoader.php
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Routing\Loader;

use Symfony\Component\Routing\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Loader\FileLoader;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/XmlFileLoader.php
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\Loader\FileLoader;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/YamlFileLoader.php
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Config\Loader\FileLoader;

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/RouteCollection.php
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Routing;

use Symfony\Component\Routing\Resource\ResourceInterface;
use Symfony\Component\Config\Resource\ResourceInterface;

/**
* A RouteCollection represents a set of Route instances.
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Translation/Loader/CsvFileLoader.php
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Translation\Loader;

use Symfony\Component\Translation\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* CsvFileLoader loads translations from CSV files.
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Translation/Loader/PhpFileLoader.php
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Translation\Loader;

use Symfony\Component\Translation\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* PhpFileLoader loads translations from PHP files returning an array of translations.
Expand Down
Expand Up @@ -12,7 +12,7 @@
namespace Symfony\Component\Translation\Loader;

use Symfony\Component\Translation\MessageCatalogue;
use Symfony\Component\Translation\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;

/**
* XliffFileLoader loads translations from XLIFF files.
Expand Down
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Translation\Loader;

use Symfony\Component\Translation\Resource\FileResource;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Yaml;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Translation/MessageCatalogue.php
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Translation;

use Symfony\Component\Translation\Resource\ResourceInterface;
use Symfony\Component\Config\Resource\ResourceInterface;

/**
* MessageCatalogue.
Expand Down
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Translation;

use Symfony\Component\Translation\Resource\ResourceInterface;
use Symfony\Component\Config\Resource\ResourceInterface;

/**
* MessageCatalogueInterface.
Expand Down

0 comments on commit f530808

Please sign in to comment.