Loads a PHP file.
mixed $file The resource:
string $type The resource type:
public function load($file, $type = null) {
// the container and loader variables are exposed to the included file below
$container = $this->container;
$loader = $this;
$path = $this->locator
->locate($file);
$this
->setCurrentDir(dirname($path));
$this->container
->addResource(new FileResource($path));
include $path;
}