From dcfc44c4d575389dc43d25173320fc3485e06246 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 14 Jul 2020 20:12:49 +0300 Subject: [PATCH] feat(element-queries): infrastructure changes #436 --- .../{core => Fundation}/Cache/AcpuAdapter.php | 0 .../Cache/ArrayAdapter.php | 0 .../{core => Fundation}/Cache/Cache.php | 0 .../Cache/CacheAdapterInterface.php | 0 .../Cache/FilesystemAdapter.php | 0 .../Cache/MemcachedAdapter.php | 0 .../Cache/RedisAdapter.php | 0 .../Cache/SQLite3Adapter.php | 0 .../Cache/WinCacheAdapter.php | 0 .../Cache/ZendDataCacheAdapter.php | 0 .../{core => Fundation}/Config/Config.php | 0 .../Container/Container.php | 0 .../{core => Fundation}/Cors/Cors.php | 0 .../{core => Fundation}/Entries/Entries.php | 0 .../{core => Fundation}/Media/MediaFiles.php | 0 .../Media/MediaFilesMeta.php | 0 .../Media/MediaFolders.php | 0 .../Media/MediaFoldersMeta.php | 0 .../{core => Fundation}/Parsers/Markdown.php | 0 .../{core => Fundation}/Parsers/Parser.php | 0 .../shortcodes/EntriesShortcodeExtension.php | 0 .../shortcodes/RegistryShortcodeExtension.php | 0 .../shortcodes/UrlShortcodeExtension.php | 0 .../{core => Fundation}/Plugins/Plugins.php | 0 .../Serializers/Frontmatter.php | 0 .../{core => Fundation}/Serializers/Json.php | 0 .../Serializers/Serializer.php | 0 .../{core => Fundation}/Serializers/Yaml.php | 0 .../Collection.php} | 2 +- src/flextype/Support/helpers.php | 24 +++++++++++++++++++ 30 files changed, 25 insertions(+), 1 deletion(-) rename src/flextype/{core => Fundation}/Cache/AcpuAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/ArrayAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/Cache.php (100%) rename src/flextype/{core => Fundation}/Cache/CacheAdapterInterface.php (100%) rename src/flextype/{core => Fundation}/Cache/FilesystemAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/MemcachedAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/RedisAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/SQLite3Adapter.php (100%) rename src/flextype/{core => Fundation}/Cache/WinCacheAdapter.php (100%) rename src/flextype/{core => Fundation}/Cache/ZendDataCacheAdapter.php (100%) rename src/flextype/{core => Fundation}/Config/Config.php (100%) rename src/flextype/{core => Fundation}/Container/Container.php (100%) rename src/flextype/{core => Fundation}/Cors/Cors.php (100%) rename src/flextype/{core => Fundation}/Entries/Entries.php (100%) rename src/flextype/{core => Fundation}/Media/MediaFiles.php (100%) rename src/flextype/{core => Fundation}/Media/MediaFilesMeta.php (100%) rename src/flextype/{core => Fundation}/Media/MediaFolders.php (100%) rename src/flextype/{core => Fundation}/Media/MediaFoldersMeta.php (100%) rename src/flextype/{core => Fundation}/Parsers/Markdown.php (100%) rename src/flextype/{core => Fundation}/Parsers/Parser.php (100%) rename src/flextype/{core => Fundation}/Parsers/shortcodes/EntriesShortcodeExtension.php (100%) rename src/flextype/{core => Fundation}/Parsers/shortcodes/RegistryShortcodeExtension.php (100%) rename src/flextype/{core => Fundation}/Parsers/shortcodes/UrlShortcodeExtension.php (100%) rename src/flextype/{core => Fundation}/Plugins/Plugins.php (100%) rename src/flextype/{core => Fundation}/Serializers/Frontmatter.php (100%) rename src/flextype/{core => Fundation}/Serializers/Json.php (100%) rename src/flextype/{core => Fundation}/Serializers/Serializer.php (100%) rename src/flextype/{core => Fundation}/Serializers/Yaml.php (100%) rename src/flextype/{core/Collections/Collections.php => Support/Collection.php} (99%) create mode 100644 src/flextype/Support/helpers.php diff --git a/src/flextype/core/Cache/AcpuAdapter.php b/src/flextype/Fundation/Cache/AcpuAdapter.php similarity index 100% rename from src/flextype/core/Cache/AcpuAdapter.php rename to src/flextype/Fundation/Cache/AcpuAdapter.php diff --git a/src/flextype/core/Cache/ArrayAdapter.php b/src/flextype/Fundation/Cache/ArrayAdapter.php similarity index 100% rename from src/flextype/core/Cache/ArrayAdapter.php rename to src/flextype/Fundation/Cache/ArrayAdapter.php diff --git a/src/flextype/core/Cache/Cache.php b/src/flextype/Fundation/Cache/Cache.php similarity index 100% rename from src/flextype/core/Cache/Cache.php rename to src/flextype/Fundation/Cache/Cache.php diff --git a/src/flextype/core/Cache/CacheAdapterInterface.php b/src/flextype/Fundation/Cache/CacheAdapterInterface.php similarity index 100% rename from src/flextype/core/Cache/CacheAdapterInterface.php rename to src/flextype/Fundation/Cache/CacheAdapterInterface.php diff --git a/src/flextype/core/Cache/FilesystemAdapter.php b/src/flextype/Fundation/Cache/FilesystemAdapter.php similarity index 100% rename from src/flextype/core/Cache/FilesystemAdapter.php rename to src/flextype/Fundation/Cache/FilesystemAdapter.php diff --git a/src/flextype/core/Cache/MemcachedAdapter.php b/src/flextype/Fundation/Cache/MemcachedAdapter.php similarity index 100% rename from src/flextype/core/Cache/MemcachedAdapter.php rename to src/flextype/Fundation/Cache/MemcachedAdapter.php diff --git a/src/flextype/core/Cache/RedisAdapter.php b/src/flextype/Fundation/Cache/RedisAdapter.php similarity index 100% rename from src/flextype/core/Cache/RedisAdapter.php rename to src/flextype/Fundation/Cache/RedisAdapter.php diff --git a/src/flextype/core/Cache/SQLite3Adapter.php b/src/flextype/Fundation/Cache/SQLite3Adapter.php similarity index 100% rename from src/flextype/core/Cache/SQLite3Adapter.php rename to src/flextype/Fundation/Cache/SQLite3Adapter.php diff --git a/src/flextype/core/Cache/WinCacheAdapter.php b/src/flextype/Fundation/Cache/WinCacheAdapter.php similarity index 100% rename from src/flextype/core/Cache/WinCacheAdapter.php rename to src/flextype/Fundation/Cache/WinCacheAdapter.php diff --git a/src/flextype/core/Cache/ZendDataCacheAdapter.php b/src/flextype/Fundation/Cache/ZendDataCacheAdapter.php similarity index 100% rename from src/flextype/core/Cache/ZendDataCacheAdapter.php rename to src/flextype/Fundation/Cache/ZendDataCacheAdapter.php diff --git a/src/flextype/core/Config/Config.php b/src/flextype/Fundation/Config/Config.php similarity index 100% rename from src/flextype/core/Config/Config.php rename to src/flextype/Fundation/Config/Config.php diff --git a/src/flextype/core/Container/Container.php b/src/flextype/Fundation/Container/Container.php similarity index 100% rename from src/flextype/core/Container/Container.php rename to src/flextype/Fundation/Container/Container.php diff --git a/src/flextype/core/Cors/Cors.php b/src/flextype/Fundation/Cors/Cors.php similarity index 100% rename from src/flextype/core/Cors/Cors.php rename to src/flextype/Fundation/Cors/Cors.php diff --git a/src/flextype/core/Entries/Entries.php b/src/flextype/Fundation/Entries/Entries.php similarity index 100% rename from src/flextype/core/Entries/Entries.php rename to src/flextype/Fundation/Entries/Entries.php diff --git a/src/flextype/core/Media/MediaFiles.php b/src/flextype/Fundation/Media/MediaFiles.php similarity index 100% rename from src/flextype/core/Media/MediaFiles.php rename to src/flextype/Fundation/Media/MediaFiles.php diff --git a/src/flextype/core/Media/MediaFilesMeta.php b/src/flextype/Fundation/Media/MediaFilesMeta.php similarity index 100% rename from src/flextype/core/Media/MediaFilesMeta.php rename to src/flextype/Fundation/Media/MediaFilesMeta.php diff --git a/src/flextype/core/Media/MediaFolders.php b/src/flextype/Fundation/Media/MediaFolders.php similarity index 100% rename from src/flextype/core/Media/MediaFolders.php rename to src/flextype/Fundation/Media/MediaFolders.php diff --git a/src/flextype/core/Media/MediaFoldersMeta.php b/src/flextype/Fundation/Media/MediaFoldersMeta.php similarity index 100% rename from src/flextype/core/Media/MediaFoldersMeta.php rename to src/flextype/Fundation/Media/MediaFoldersMeta.php diff --git a/src/flextype/core/Parsers/Markdown.php b/src/flextype/Fundation/Parsers/Markdown.php similarity index 100% rename from src/flextype/core/Parsers/Markdown.php rename to src/flextype/Fundation/Parsers/Markdown.php diff --git a/src/flextype/core/Parsers/Parser.php b/src/flextype/Fundation/Parsers/Parser.php similarity index 100% rename from src/flextype/core/Parsers/Parser.php rename to src/flextype/Fundation/Parsers/Parser.php diff --git a/src/flextype/core/Parsers/shortcodes/EntriesShortcodeExtension.php b/src/flextype/Fundation/Parsers/shortcodes/EntriesShortcodeExtension.php similarity index 100% rename from src/flextype/core/Parsers/shortcodes/EntriesShortcodeExtension.php rename to src/flextype/Fundation/Parsers/shortcodes/EntriesShortcodeExtension.php diff --git a/src/flextype/core/Parsers/shortcodes/RegistryShortcodeExtension.php b/src/flextype/Fundation/Parsers/shortcodes/RegistryShortcodeExtension.php similarity index 100% rename from src/flextype/core/Parsers/shortcodes/RegistryShortcodeExtension.php rename to src/flextype/Fundation/Parsers/shortcodes/RegistryShortcodeExtension.php diff --git a/src/flextype/core/Parsers/shortcodes/UrlShortcodeExtension.php b/src/flextype/Fundation/Parsers/shortcodes/UrlShortcodeExtension.php similarity index 100% rename from src/flextype/core/Parsers/shortcodes/UrlShortcodeExtension.php rename to src/flextype/Fundation/Parsers/shortcodes/UrlShortcodeExtension.php diff --git a/src/flextype/core/Plugins/Plugins.php b/src/flextype/Fundation/Plugins/Plugins.php similarity index 100% rename from src/flextype/core/Plugins/Plugins.php rename to src/flextype/Fundation/Plugins/Plugins.php diff --git a/src/flextype/core/Serializers/Frontmatter.php b/src/flextype/Fundation/Serializers/Frontmatter.php similarity index 100% rename from src/flextype/core/Serializers/Frontmatter.php rename to src/flextype/Fundation/Serializers/Frontmatter.php diff --git a/src/flextype/core/Serializers/Json.php b/src/flextype/Fundation/Serializers/Json.php similarity index 100% rename from src/flextype/core/Serializers/Json.php rename to src/flextype/Fundation/Serializers/Json.php diff --git a/src/flextype/core/Serializers/Serializer.php b/src/flextype/Fundation/Serializers/Serializer.php similarity index 100% rename from src/flextype/core/Serializers/Serializer.php rename to src/flextype/Fundation/Serializers/Serializer.php diff --git a/src/flextype/core/Serializers/Yaml.php b/src/flextype/Fundation/Serializers/Yaml.php similarity index 100% rename from src/flextype/core/Serializers/Yaml.php rename to src/flextype/Fundation/Serializers/Yaml.php diff --git a/src/flextype/core/Collections/Collections.php b/src/flextype/Support/Collection.php similarity index 99% rename from src/flextype/core/Collections/Collections.php rename to src/flextype/Support/Collection.php index bd84f17e..450769b1 100644 --- a/src/flextype/core/Collections/Collections.php +++ b/src/flextype/Support/Collection.php @@ -15,7 +15,7 @@ use Doctrine\Common\Collections\Expr\Comparison; use Flextype\Component\Filesystem\Filesystem; use Flextype\Component\Arr\Arr; -class Collections +class Collection { /** * Flextype Dependency Container diff --git a/src/flextype/Support/helpers.php b/src/flextype/Support/helpers.php new file mode 100644 index 00000000..97e1f7d8 --- /dev/null +++ b/src/flextype/Support/helpers.php @@ -0,0 +1,24 @@ +