Open richwandell opened 6 years ago
Currently I have a PHP application that I do not want to autoload Linq.php for everything, but your composer.json specifies autoload files which forced the inclusion of Linq.php for everything even when nothing is used from your library.
"autoload": { "psr-4": { "YaLinqo\\": "YaLinqo/" }, "files": [ "YaLinqo/Linq.php" ] },
I would suggest removing the files section and allow people to use the function "from" within your YaLinqo namespace.
// aliasing a function (PHP 5.6+) use function YaLinqo\from as from;
This will also allow us to alias the from method so that we can call it something else. Maybe I want to do something like this.
// aliasing a function (PHP 5.6+) use function YaLinqo\from as yfrom;
This could be helpful if I already have a function defined as "from".
Currently I have a PHP application that I do not want to autoload Linq.php for everything, but your composer.json specifies autoload files which forced the inclusion of Linq.php for everything even when nothing is used from your library.
I would suggest removing the files section and allow people to use the function "from" within your YaLinqo namespace.
This will also allow us to alias the from method so that we can call it something else. Maybe I want to do something like this.
This could be helpful if I already have a function defined as "from".