mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Merge branch 'develop' of github.com:getgrav/grav into develop
This commit is contained in:
commit
d939b1e563
|
|
@ -13,6 +13,7 @@
|
|||
* Upgraded to **composer v2.1.14** for PHP 8.1 compatibility
|
||||
* Added third `$name` parameter to `Blueprint::flattenData()` method, useful for flattening repeating data
|
||||
* `ControllerResponseTrait`: Redirect response should be json if the extension is .json
|
||||
* When symlinking Grav install, include also tests
|
||||
3. [](#bugfix)
|
||||
* Fixed bad key lookup in `FlexRelatedDirectoryTrait::getCollectionByProperty()`
|
||||
* Fixed RequestHandlers `NotFoundException` having empty request
|
||||
|
|
|
|||
|
|
@ -200,6 +200,10 @@ class SandboxCommand extends GravCommand
|
|||
$io->newLine();
|
||||
$io->writeln('<comment>Resetting Symbolic Links</comment>');
|
||||
|
||||
// Symlink also tests if using git.
|
||||
if (is_dir($this->source . '/tests')) {
|
||||
$this->mappings['/tests'] = '/tests';
|
||||
}
|
||||
|
||||
foreach ($this->mappings as $source => $target) {
|
||||
if ((string)(int)$source === (string)$source) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user