/** * Adds the filesystem manager object to the context * * @param \Aimeos\MShop\Context\Item\Iface $context Context object * @return \Aimeos\MShop\Context\Item\Iface Modified context object */ protected function addFilesystemManager(\Aimeos\MShop\Context\Item\Iface $context) { $fs = new \Aimeos\MW\Filesystem\Manager\Standard($context->getConfig()); $context->setFilesystemManager($fs); return $context; }
/** * Adds the filesystem manager object to the context * * @param \Aimeos\MShop\Context\Item\Iface $context Context object * @return \Aimeos\MShop\Context\Item\Iface Modified context object */ protected function addFilesystemManager(\Aimeos\MShop\Context\Item\Iface $context) { $config = $context->getConfig(); $path = storage_path('aimeos'); $fs = new \Aimeos\MW\Filesystem\Manager\Laravel(app('filesystem'), $config, $path); $context->setFilesystemManager($fs); return $context; }