If $pattern is a string, then must be a valid regex that matches the template filename.
If $pattern is a callback, then must return true if the template is compilable, false otherwise.
public addSourceAdapter ( string | callback $pattern, Goetas\Twital\SourceAdapter $adapter ) : |
||
$pattern | string | callback | |
$adapter | Goetas\Twital\SourceAdapter | |
return |