Passed
Pull Request — master (#104)
by Anton
13:25
created

getFileSystemWriterPlugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
dl 0
loc 3
c 1
b 0
f 1
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Service\FileSystem;
9
10
use Spryker\Service\FileSystem\FileSystemDependencyProvider as SprykerFileSystemDependencyProvider;
11
use Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemReaderPluginInterface;
12
use Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemStreamPluginInterface;
13
use Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemWriterPluginInterface;
14
use Spryker\Service\Flysystem\Plugin\FileSystem\FileSystemReaderPlugin;
15
use Spryker\Service\Flysystem\Plugin\FileSystem\FileSystemStreamPlugin;
16
use Spryker\Service\Flysystem\Plugin\FileSystem\FileSystemWriterPlugin;
17
18
class FileSystemDependencyProvider extends SprykerFileSystemDependencyProvider
19
{
20
    /**
21
     * @return \Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemReaderPluginInterface
22
     */
23
    protected function getFileSystemReaderPlugin(): FileSystemReaderPluginInterface
24
    {
25
        return new FileSystemReaderPlugin();
26
    }
27
28
    /**
29
     * @return \Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemStreamPluginInterface
30
     */
31
    protected function getFileSystemStreamPlugin(): FileSystemStreamPluginInterface
32
    {
33
        return new FileSystemStreamPlugin();
34
    }
35
36
    /**
37
     * @return \Spryker\Service\FileSystemExtension\Dependency\Plugin\FileSystemWriterPluginInterface
38
     */
39
    protected function getFileSystemWriterPlugin(): FileSystemWriterPluginInterface
40
    {
41
        return new FileSystemWriterPlugin();
42
    }
43
}
44