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

Examples not working when component is installed via composer #1

Open
stevleibelt opened this issue Jul 26, 2017 · 3 comments
Open

Comments

@stevleibelt
Copy link
Member

In each example, we are going straight to the autoloader this way.

require_once __DIR__ . '/../vendor/autoload.php';

This is not working when things are installed via composer.

Add a check and try to find the real autoloader. If needed (since this is common, put this helper into a dedicated component.).

require_once __DIR__ . '/../../../autoload.php';
@stevleibelt
Copy link
Member Author

Will be fixed by using php_component_composer_autoload_loader.

@peter279k
Copy link
Collaborator

I think it's not the main issue. It can set the current path assumption before every sample code.

@peter279k
Copy link
Collaborator

@stevleibelt , I think it can also some tutorials/docs to explain how to use the example code in example folder.

This issue will solved by our docs or tutorials :).

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