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

restler.php missing code after installing v5 with composer #683

Open
sebastianpospisil opened this issue Jul 19, 2022 · 0 comments
Open

Comments

@sebastianpospisil
Copy link

Hello @Arul- ,

the last few days, I tried using your awesome Restler Tool to display some self-made requests. I followed the instructions from GitHub while installing. For a long time, either a white screen only or an empty explorer was shown. Today I found that with the latest release there was some code missing in the restler.php file:

...if (is_readable(__DIR__ . '/vendor/autoload.php')) {
//if composer auto loader is found use it
require __DIR__ . '/vendor/autoload.php';
class_alias('Luracast\\Restler\\Restler', 'Restler');
} else {...

After I added these commands back in, it turned out working for me:

...if (is_readable(__DIR__ . '/vendor/autoload.php')) {
//if composer auto loader is found use it
+ $loader = require __DIR__ . '/vendor/autoload.php';
+ $loader->setUseIncludePath(true);
- // require __DIR__ . '/vendor/autoload.php';
class_alias('Luracast\\Restler\\Restler', 'Restler');
} else {...

Was this an error on my end, or had the compiler a hiccup? Thanks for checking.

Greetings and keep coding

Sebastian

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

1 participant