Fix facades fullpath autocomplete (#441)

* Add method to retrieve namespace of extended class

* Regroup classes by namespace of the class they extends

* Restore facades shortnames

* Fix classnames used for methods declaration
This commit is contained in:
Florian Lefèvre
2017-02-13 12:52:36 +01:00
committed by Barry vd. Heuvel
parent f1e93f042d
commit 8c306035aa
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -15,6 +15,7 @@ class Alias
protected $alias;
protected $facade;
protected $extends = null;
protected $extendsClass = null;
protected $extendsNamespace = null;
protected $classType = 'class';
protected $short;
@@ -107,6 +108,16 @@ class Alias
return $this->extends;
}
/**
* Get the class short name which this alias extends
*
* @return null|string
*/
public function getExtendsClass()
{
return $this->extendsClass;
}
/**
* Get the namespace of the class which this alias extends
*
@@ -177,7 +188,7 @@ class Alias
{
if (strpos($this->extends, '\\') !== false) {
$nsParts = explode('\\', $this->extends);
array_pop($nsParts);
$this->extendsClass = array_pop($nsParts);
$this->extendsNamespace = implode('\\', $nsParts);
}
}