1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 02:41:27 +02:00

feat(core): Add ability to extend Core class with Macros. #489

This commit is contained in:
Awilum
2020-12-05 15:26:10 +03:00
parent b4b1beebb2
commit 5f51675f68
5 changed files with 17 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ declare(strict_types=1);
namespace Flextype\Foundation\Entries;
use Atomastic\Arrays\Arrays;
use Atomastic\Macroable\Macroable;
use function array_merge;
use function arrays;
@@ -21,6 +22,8 @@ use function strings;
class Entries
{
use Macroable;
/**
* Entries Storage
*

View File

@@ -10,6 +10,7 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
use Atomastic\Arrays\Arrays;
use ErrorException;
use Intervention\Image\ImageManagerStatic as Image;
@@ -50,6 +51,8 @@ use const UPLOAD_ERR_OK;
class MediaFiles
{
use Macroable;
/**
* Upload media file
*

View File

@@ -9,12 +9,16 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
use function arrays;
use function filesystem;
use function flextype;
class MediaFilesMeta
{
use Macroable;
/**
* Update file meta information
*

View File

@@ -9,6 +9,7 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
use Atomastic\Arrays\Arrays;
use Slim\Http\Environment;
use Slim\Http\Uri;
@@ -21,6 +22,8 @@ use function str_replace;
class MediaFolders
{
use Macroable;
/**
* Fetch single folder.
*

View File

@@ -9,8 +9,12 @@ declare(strict_types=1);
namespace Flextype\Foundation\Media;
use Atomastic\Macroable\Macroable;
class MediaFoldersMeta
{
use Macroable;
/**
* Get files directory meta location
*