Skip to content
Permalink
Browse files

Extracting the collection function into a new file inside Collection

  • Loading branch information...
lorenzo committed Sep 25, 2014
1 parent 00deb7c commit 3c41eb734d894fe11c349488a7d7d6980ceee45c
Showing with 6 additions and 16 deletions.
  1. +4 −1 composer.json
  2. +2 −1 src/Collection/composer.json
  3. +0 −14 src/basics.php
@@ -34,7 +34,10 @@
"psr-4": {
"Cake\\": "src"
},
"files": ["src/Core/functions.php"]
"files": [
"src/Core/functions.php",
"src/Collection/functions.php"
]
},
"autoload-dev": {
"psr-4": {
@@ -11,7 +11,8 @@
"autoload": {
"psr-4": {
"Cake\\Collection\\": "."
}
},
"files": ["functions.php"]
},
"minimum-stability": "beta"
}
@@ -244,17 +244,3 @@ function __x($context, $singular, $args = null) {
}
}
if (!function_exists('collection')) {
/**
* Returns a new Cake\Collection\Collection object wrapping the passed argument
*
* @param \Traversable|array $items The items from which the collection will be built
* @return \Cake\Collection\Collection
*/
function collection($items) {
return new Collection($items);
}
}

0 comments on commit 3c41eb7

Please sign in to comment.
You can’t perform that action at this time.