Skip to content

Commit 32d9006

Browse files
committed
Allow changing fallback class name for TableLocator.
1 parent ac5322c commit 32d9006

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Locator/TableLocator.php

+14
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@ public function useFallbackClass(bool $enable)
107107
return $this;
108108
}
109109

110+
/**
111+
* Set fallback class name.
112+
*
113+
* @param string $className Fallback class name
114+
* @return $this
115+
* @psalm-param class-string<\Cake\ORM\Table> $className
116+
*/
117+
public function setFallbackClassName($className)
118+
{
119+
$this->fallbackClassName = $className;
120+
121+
return $this;
122+
}
123+
110124
/**
111125
* @inheritDoc
112126
*/

0 commit comments

Comments
 (0)