- Totally reworked Notes to allievate most conceptions problems. Removed old annotations artifacts too
This commit is contained in:
1 parent
996c8fa14a
commit
61b84bfd09
18 files changed
+495
-463
No files matched your search
@@ -93,11 +93,11 @@ class RouteFetcher {
|
||||
$class = $this->generateClassname($file->getBasename(".php"), $namespace);
|
||||
$methods = null;
|
||||
|
||||
$objectResolver = new ObjectResolver($class, true, true, false, true, $this->cache);
|
||||
$objectResolver = new ObjectResolver($class, $this->cache);
|
||||
|
||||
if ( isset($attributes['object']) ) {
|
||||
|
||||
$objects = $objectResolver->getAttributeListFromClassname($attributes['object'], false);
|
||||
$objects = $objectResolver->reflectedClass->getClassAttributeListFromClassname($attributes['object'], true, false);
|
||||
|
||||
foreach(array_reverse($objects) as $object) {
|
||||
if ($object->method ?? false ) {
|
||||
@@ -109,7 +109,7 @@ class RouteFetcher {
|
||||
}
|
||||
|
||||
if ( isset($attributes['method']) ) {
|
||||
$routeList = $objectResolver->getAttributeListFromClassname( $attributes['method'], false );
|
||||
$routeList = $objectResolver->reflectedClass->getMethodAttributeListFromClassname( $attributes['method'], false, false );
|
||||
|
||||
foreach($routeList as $func => $routes) {
|
||||
if (is_array($routes)) {
|
||||
|
||||
Reference in new issue
Block a user