Skip to content

Commit

Permalink
NEW Allow LeftAndMain::getClientConfig to be extensible
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Sep 11, 2017
1 parent 8cc574b commit 609a070
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public function getCombinedClientConfig()
*/
public function getClientConfig()
{
return [
$clientConfig = [
// Trim leading/trailing slash to make it easier to concatenate URL
// and use in routing definitions.
'name' => static::class,
Expand All @@ -326,6 +326,10 @@ public function getClientConfig()
],
],
];

$this->extend('updateClientConfig', $clientConfig);

return $clientConfig;
}

/**
Expand Down

0 comments on commit 609a070

Please sign in to comment.