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

Please set this package to use Composer Autoload #461

Open
stefanobartoletti opened this issue Jan 16, 2020 · 1 comment
Open

Please set this package to use Composer Autoload #461

stefanobartoletti opened this issue Jan 16, 2020 · 1 comment

Comments

@stefanobartoletti
Copy link

stefanobartoletti commented Jan 16, 2020

This package doesn't seem to work with Composer Autoload.

I've seen that a similar issue was already opened #346 but I don't seem to be able to make this work.

Right now as a workaround I had to put this in my own project's composer.json:

"autoload": {
    "files": ["vendor/wp-bootstrap/wp-bootstrap-navwalker/class-wp-bootstrap-navwalker.php"]
},

But this is not needed with other packages that I use and I would prefer it wp-bootstrap-navwalker could load itself as well.

Thank you :-)

iannacone added a commit to iannacone/wpbootstrap that referenced this issue Jun 4, 2020
@ethanclevenger91
Copy link

ethanclevenger91 commented Oct 28, 2020

I found that, at least in a Bedrock setup, using the files autoload option, the walker gets autoloaded before WordPress is loaded, which means the Walker_Nav_Menu class can't be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants