Skip to content

Commit

Permalink
Require the newest spaze/sri-macros which can set and get the build p…
Browse files Browse the repository at this point in the history
…ath prefix with a method
  • Loading branch information
spaze committed Jan 13, 2024
1 parent 16cee30 commit c6ee81d
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion site/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"spaze/mysql-session-handler": "^2.3",
"spaze/nonce-generator": "^4.0",
"spaze/phpinfo": "^1.0",
"spaze/sri-macros": "^2.0",
"spaze/sri-macros": "^2.2.2",
"spaze/svg-icons-latte": "^1.0",
"symfony/cache": "^7.0",
"texy/texy": "^3.1.7",
Expand Down
14 changes: 7 additions & 7 deletions site/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions site/vendor/composer/installed.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions site/vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'spaze/michalspacek.cz',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '987a8941d1b068cef474b47f4bb962e18b5b947b',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => NULL,
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -451,9 +451,9 @@
'dev_requirement' => false,
),
'spaze/michalspacek.cz' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '987a8941d1b068cef474b47f4bb962e18b5b947b',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => NULL,
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -505,9 +505,9 @@
'dev_requirement' => true,
),
'spaze/sri-macros' => array(
'pretty_version' => 'v2.2.1',
'version' => '2.2.1.0',
'reference' => 'efad2b58af5699fa7e6e11e7ef34662f4d9d1f7c',
'pretty_version' => 'v2.2.2',
'version' => '2.2.2.0',
'reference' => 'b94f713ed4c2f1817f6f07f1ac6f7c3774c376d6',
'type' => 'library',
'install_path' => __DIR__ . '/../spaze/sri-macros',
'aliases' => array(),
Expand Down
12 changes: 12 additions & 0 deletions site/vendor/spaze/sri-macros/src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ public function setLocalPrefix(stdClass $prefix): void
}


public function setLocalBuildPrefix(string $prefix): void
{
$this->localPrefix['build'] = $prefix;
}


public function getLocalPathBuildPrefix(): string
{
return sprintf('%s/%s', rtrim($this->localPrefix['path'], '/'), trim($this->localPrefix['build'], '/'));
}


public function setLocalMode(LocalMode|string $localMode): void
{
$this->localMode = is_string($localMode) ? LocalMode::from($localMode) : $localMode;
Expand Down

0 comments on commit c6ee81d

Please sign in to comment.