for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015
* @package MW
* @subpackage Filesystem
*/
namespace Aimeos\MW\Filesystem\Manager;
* Laravel file system manager
*
class Laravel extends Standard implements Iface
{
private $objects = array();
private $fsm;
* Initializes the object
* @param \Illuminate\Filesystem\FilesystemManager $fsm Laravel file system manager object
* @param \Aimeos\MW\Config\Iface $config Configuration object
public function __construct( \Illuminate\Filesystem\FilesystemManager $fsm, \Aimeos\MW\Config\Iface $config )
parent::__construct( $config );
$this->fsm = $fsm;
}
* Returns the file system for the given name
* @param string $name Key for the file system
* @return \Aimeos\MW\Filesystem\Iface File system object
* @throws \Aimeos\MW\Filesystem\Exception If an no configuration for that name is found
public function get( $name )
$key = $this->getConfig( $name );
if( is_string( $key ) )
if( !isset( $this->objects[$key] ) ) {
$this->objects[$key] = new \Aimeos\MW\Filesystem\Laravel( $this->fsm->disk( $key ) );
return $this->objects[$key];
return parent::get( $name );