: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\ResourceTranslator;
class ResourceIdentifier {
protected $rawKeyword = '';
public function __construct($keyword, $path, $url) {
* Keyword must start and end with `$` sign
if (strlen($keyword) == 0) {
if ($keyword[0] != '$') {
$keyword = '$' . $keyword;
if ($keyword[strlen($keyword) - 1] != '$') {
$this->rawKeyword = $keyword;
$this->keyword = $keyword . '/';
$this->path = rtrim($path, '/\\') . DIRECTORY_SEPARATOR;
$this->url = rtrim($url, '/') . '/';
public function getRawKeyword() {
return $this->rawKeyword;
public function getKeyword() {
public function getPath() {
public function getUrl() {