eZ\Publish\Core\FieldType\GatewayBasedStorage::__construct PHP Метод

__construct() публичный Метод

Construct from gateways.
public __construct ( array $gateways = [] )
$gateways array
    public function __construct(array $gateways = array())
    {
        foreach ($gateways as $identifier => $gateway) {
            $this->addGateway($identifier, $gateway);
        }
    }

Usage Example

 /**
  * Construct from gateways
  *
  * @param \eZ\Publish\Core\FieldType\StorageGateway[] $gateways
  * @param IOServiceInterface $IOService
  * @param PathGenerator $pathGenerator
  * @param MimeTypeDetector $mimeTypeDetector
  */
 public function __construct(array $gateways, IOServiceInterface $IOService, PathGenerator $pathGenerator, MimeTypeDetector $mimeTypeDetector)
 {
     parent::__construct($gateways);
     $this->IOService = $IOService;
     $this->pathGenerator = $pathGenerator;
     $this->mimeTypeDetector = $mimeTypeDetector;
 }
All Usage Examples Of eZ\Publish\Core\FieldType\GatewayBasedStorage::__construct