Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pustułka committed Apr 25, 2017
1 parent 2e9e77b commit 3a9ff26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ORM/TableRegistry.php
Expand Up @@ -88,7 +88,7 @@ public static function locator(LocatorInterface $locator = null)
public static function getTableLocator()
{
if (!static::$_locator) {
static::$_locator = new static::$_defaultLocatorClass;
static::$_locator = new static::$_defaultLocatorClass();
}

return static::$_locator;
Expand All @@ -97,12 +97,12 @@ public static function getTableLocator()
/**
* Sets singleton instance of LocatorInterface implementation.
*
* @param \Cake\ORM\Locator\LocatorInterface|null $locator Instance of a locator to use.
* @param \Cake\ORM\Locator\LocatorInterface|null $tableLocator Instance of a locator to use.
* @return void
*/
public static function setTableLocator(LocatorInterface $locator)
public static function setTableLocator(LocatorInterface $tableLocator)
{
static::$_locator = $locator;
static::$_locator = $tableLocator;
}

/**
Expand Down

0 comments on commit 3a9ff26

Please sign in to comment.