Skip to content

Commit

Permalink
Update PackageManifest.php extra method name to getRegisteredExtra
Browse files Browse the repository at this point in the history
  • Loading branch information
Martins Fridenbergs committed Jan 6, 2020
1 parent 998ae73 commit 0459c4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/PackageManifest.php
Expand Up @@ -64,7 +64,7 @@ public function __construct(Filesystem $files, $basePath, $manifestPath)
* @param string $name
* @return array
*/
public function extra($name)
public function getRegisteredExtra($name)
{
return collect($this->getManifest())->flatMap(function ($configuration) use ($name) {
return (array) ($configuration[$name] ?? []);
Expand All @@ -78,7 +78,7 @@ public function extra($name)
*/
public function providers()
{
return $this->extra('providers');
return $this->getRegisteredExtra('providers');
}

/**
Expand All @@ -88,7 +88,7 @@ public function providers()
*/
public function aliases()
{
return $this->extra('aliases');
return $this->getRegisteredExtra('aliases');
}

/**
Expand Down

0 comments on commit 0459c4b

Please sign in to comment.