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:
@@ -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
|
||||
*
|
||||
|
@@ -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
|
||||
*
|
||||
|
@@ -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
|
||||
*
|
||||
|
@@ -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.
|
||||
*
|
||||
|
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user