updated core to 1.7.15

This commit is contained in:
2021-05-27 18:17:50 +02:00
parent dc1fdf21c9
commit 19ecb285ab
552 changed files with 80743 additions and 16675 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* @package Grav\Framework\Media
*
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Media\Interfaces;
/**
* Class implements media collection interface.
*/
interface MediaCollectionInterface extends \ArrayAccess, \Countable, \Iterator
{
}

View File

@@ -0,0 +1,37 @@
<?php
/**
* @package Grav\Framework\Media
*
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Media\Interfaces;
/**
* Class implements media interface.
*/
interface MediaInterface
{
/**
* Gets the associated media collection.
*
* @return MediaCollectionInterface Collection of associated media.
*/
public function getMedia();
/**
* Get filesystem path to the associated media.
*
* @return string|null Media path or null if the object doesn't have media folder.
*/
public function getMediaFolder();
/**
* Get display order for the associated media.
*
* @return array Empty array means default ordering.
*/
public function getMediaOrder();
}

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
/**
* @package Grav\Framework\Media
*
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Media\Interfaces;
use Grav\Common\Media\Interfaces\MediaInterface;
use Psr\Http\Message\UploadedFileInterface;
/**
* Interface MediaManipulationInterface
* @package Grav\Framework\Media\Interfaces
* @deprecated 1.7 Not used currently
*/
interface MediaManipulationInterface extends MediaInterface
{
/**
* @param UploadedFileInterface $uploadedFile
*/
public function uploadMediaFile(UploadedFileInterface $uploadedFile): void;
/**
* @param string $filename
*/
public function deleteMediaFile(string $filename): void;
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* @package Grav\Framework\Media
*
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Media\Interfaces;
/**
* Class implements media object interface.
*/
interface MediaObjectInterface
{
}