Ejemplo n.º 1
0
 /**
  * Loads a resource.
  *
  * A resource is a file or an array of files.
  *
  * The concrete classes always have access to an array of files
  * as this method converts single file argument to an array.
  *
  * @param mixed $resource The resource path
  */
 public function load($resource)
 {
     if (!is_array($resource)) {
         $resource = array($resource);
     }
     return parent::load($resource);
 }
 /**
  * Constructor.
  *
  * @param sfServiceContainerBuilder $container A sfServiceContainerBuilder instance
  * @param array                     $paths An array of paths where to look for resources
  */
 public function __construct(sfServiceContainerBuilder $container = null, $paths = array())
 {
     parent::__construct($container);
     if (!is_array($paths)) {
         $paths = array($paths);
     }
     $this->paths = $paths;
 }