1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

feat(element-queries): infrastructure changes #436

This commit is contained in:
Awilum
2020-07-14 20:12:49 +03:00
parent 42314fd2cf
commit dcfc44c4d5
30 changed files with 25 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
/**
* Flextype (http://flextype.org)
* Founded by Sergey Romanenko and maintained by Flextype Community.
*/
namespace Flextype;
if (! function_exists('collect')) {
/**
* Create a collection from the given value.
*
* @param array $value Items to collect
*
* @return \Flextype\Collection
*/
function collect($array)
{
return new Collection($array);
}
}