Skip to content

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

@sebastianpospisil

Description

@sebastianpospisil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions