Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove autoload files #41

Open
richwandell opened this issue Oct 18, 2018 · 0 comments
Open

Remove autoload files #41

richwandell opened this issue Oct 18, 2018 · 0 comments
Assignees
Labels
type:improvement Improvement
Milestone

Comments

@richwandell
Copy link

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".

@Athari Athari self-assigned this Mar 3, 2019
@Athari Athari added the type:improvement Improvement label Mar 3, 2019
@Athari Athari added this to the 3.0 milestone Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement Improvement
Projects
None yet
Development

No branches or pull requests

2 participants