iPriceVentures / ocapiplugin

iPrice RESTful API generator plugin for October CMS
MIT License
5 stars 5 forks source link

Class IPriceGroup\OcApiPlugin\Classes\RoutesManager does not exist #18

Open Tetraneon opened 4 years ago

Tetraneon commented 4 years ago

After install this plugin, there's a broken link icon in the october cms backend toolbar. When I click on it, the following message appears :

Class IPriceGroup\OcApiPlugin\Classes\RoutesManager does not exist
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php line 811

TYPE              EXCEPTION
Undefined     ReflectionException

continue;
            }
            // If the class is null, it means the dependency is a string or some other
            // primitive type which we can not resolve since it is not a class and
            // we will just bomb out with an error since we have no-where to go.
            $results[] = is_null($dependency->getClass())
                            ? $this->resolvePrimitive($dependency)
                            : $this->resolveClass($dependency);
        }
        return $results;
    }

Builder and JWTAuth are installed.

Tetraneon commented 4 years ago

Ok ! I debug a little bit :

  1. My OC does'nt like private const in
    • /classes/RoutesManager.php
    • /classes/ApiControllersManager.php
    • /controllers/api/BaseApiController.php

Is it a PHP version problem ?

  1. It seems to have a useless ? at 131 in BaseApiController.php script, just before callable