mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Add facades fullpath autocomplete (#437)
* Add method to retrieve namespace of extended class * Regroup classes by namespace of the class they extends * Restore facades shortnames
This commit is contained in:
committed by
Barry vd. Heuvel
parent
a7fc2ec489
commit
525733122e
+16
-11
@@ -9,14 +9,10 @@
|
||||
*/
|
||||
|
||||
<?php foreach($namespaces as $namespace => $aliases): ?>
|
||||
namespace <?= $namespace == '__root' ? '' : $namespace ?>{
|
||||
<?php if($namespace == '__root'): ?>
|
||||
exit("This file should not be included, only analyzed by your IDE");
|
||||
<?= $helpers ?>
|
||||
<?php endif; ?>
|
||||
namespace <?= $namespace == '__root' ? '' : trim($namespace, '\\') ?>{
|
||||
<?php foreach($aliases as $alias): ?>
|
||||
|
||||
<?= $alias->getClassType() ?> <?= $alias->getShortName() ?> <?= $alias->getExtends() ? 'extends ' . $alias->getExtends() : '' ?>{
|
||||
<?= $alias->getClassType() ?> <?= $alias->getShortName() ?>{
|
||||
<?php foreach($alias->getMethods() as $method): ?>
|
||||
|
||||
<?= trim($method->getDocComment(' ')) ?>
|
||||
@@ -30,14 +26,23 @@ namespace <?= $namespace == '__root' ? '' : $namespace ?>{
|
||||
}
|
||||
<?php endforeach; ?>
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
<?php endforeach; ?>
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
namespace {
|
||||
exit("This file should not be included, only analyzed by your IDE");
|
||||
<?= $helpers ?>
|
||||
|
||||
<?php foreach($namespaces as $namespace => $aliases): ?>
|
||||
<?php foreach($aliases as $alias): ?>
|
||||
<?= $alias->getClassType() ?> <?= $alias->getShortName() ?> extends <?= $alias->getExtends() ?>{}
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
}
|
||||
|
||||
<?php if($include_fluent): ?>
|
||||
namespace Illuminate\Support {
|
||||
@@ -63,4 +68,4 @@ namespace Illuminate\Support {
|
||||
*/
|
||||
class Fluent {}
|
||||
}
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
Reference in New Issue
Block a user