Compare commits

...

10 commits

Author SHA1 Message Date
c03377c974 update structure of composer.json and update dependencies 2024-10-11 14:30:25 +02:00
Christian Krause
f4d3da82a6 Merge branch 'release/3.0.1' 2023-05-23 17:41:23 +02:00
Christian Krause
e8ea04f323 Fix for iterator arguments 2023-05-23 17:40:07 +02:00
f54dded1e0 left over code style issues 2023-02-07 16:57:50 +01:00
b77e4f391b Only Code-Style and doc-type hints 2023-02-07 16:44:52 +01:00
Dustin Hauer
5cbd1340cd Merge branch 'version/2.x-dev' into develop
* version/2.x-dev:
2023-01-11 12:08:49 +01:00
Dustin Hauer
3a08a677bd Merge branch 'version/2.x' into version/2.x-dev
* version/2.x:
2023-01-11 12:07:40 +01:00
Dustin Hauer
bb648cee60 Merge branch 'version/2.x-dev' into version/2.x
* version/2.x-dev:
  TASK: Apply migration Neos.Flow-20180415105700
  TASK: Apply migration DigiComp.SettingValidator-20170603120900
  allow neos/flow ~5.3
2023-01-11 12:07:07 +01:00
Dustin Hauer
277835311c Merge branch 'feature/flow-5.3' into version/2.x-dev
* feature/flow-5.3:
  TASK: Apply migration Neos.Flow-20180415105700
  TASK: Apply migration DigiComp.SettingValidator-20170603120900
  allow neos/flow ~5.3
2023-01-11 12:06:34 +01:00
f32f995f43 Merge tag '3.0.0' into develop
Tagging 3.0.0
2021-08-26 11:20:06 +02:00
5 changed files with 33 additions and 19 deletions

View file

@ -20,7 +20,7 @@ interface ServiceInterface
/**
* @param string|null $forPath
*
* @return array|\Iterator
* @return \Iterator
*/
public function getItems(string $forPath = null): \Iterator;
}

View file

@ -15,8 +15,6 @@ namespace DigiComp\Menu\MenuService;
use Neos\Flow\Annotations as Flow;
/**
* @package DigiComp\Menu\Menu
*
* @Flow\Scope("singleton")
*/
class SettingsService implements ServiceInterface
@ -30,7 +28,7 @@ class SettingsService implements ServiceInterface
/**
* @var array
*/
protected array $items = array();
protected array $items = [];
public function getItems(string $forPath = null): \Iterator
{
@ -40,9 +38,9 @@ class SettingsService implements ServiceInterface
$items = &$this->menuConfiguration;
}
if ($items) {
uasort(
\uasort(
$items,
function ($a, $b) {
static function ($a, $b) {
return $a['sorting'] > $b['sorting'];
}
);

View file

@ -12,9 +12,9 @@ namespace DigiComp\Menu;
* source code.
*/
use Neos\Flow\Configuration\ConfigurationManager;
use Neos\Flow\Core\Bootstrap;
use Neos\Flow\Package\Package as BasePackage;
use Neos\Flow\Configuration\ConfigurationManager;
/**
* Package base class of the DigiComp.Menu package.

View file

@ -53,13 +53,16 @@ class ProgressViewHelper extends AbstractViewHelper
{
$links = $activeStep = $returnable = $stepsAs = $backLinkAs = $activeStepAs = $linksAs =
$activeStepLinkAs = $offset = $linkCount = null;
extract($this->arguments);
\extract($this->arguments, \EXTR_OVERWRITE);
//handling famous off by one
$activeStep -= $offset;
//make sure our array index is numeric
$links = array_values($links);
if (\is_iterable($links)) {
$links = \iterator_to_array($links);
}
$links = \array_values($links);
if (!$linkCount) {
$linkCount = count($links);
$linkCount = \count($links);
}
foreach ($links as $i => &$link) {
$link['completed'] = $activeStep > $i;

View file

@ -1,36 +1,49 @@
{
"name": "digicomp/menu",
"type": "neos-package",
"description": "Helps with the creation of simple fluid based menus",
"type": "neos-package",
"keywords": [
"flow",
"neos",
"Neos",
"Flow",
"menu"
],
"homepage": "https://git.digital-competence.de/Packages/DigiComp.Menu",
"license": "MIT",
"authors": [
{
"name": "Ferdinand Kuhl",
"email": "f.kuhl@digital-competence.de",
"homepage": "http://www.digital-competence.de",
"homepage": "https://www.digital-competence.de",
"role": "Developer"
}
],
"license": "MIT",
"homepage": "https://github.com/digicomp/DigiComp.Menu",
"require": {
"neos/flow": "~6.3",
"php": "^7.4"
"php": ">=7.4.0",
"neos/flow": "^6.3.21"
},
"require-dev": {
"mikey179/vfsstream": "^1.6.1",
"neos/buildessentials": "^7.0.0",
"phpunit/phpunit": "~8.5",
"vimeo/psalm": "~4.22.0"
},
"autoload": {
"psr-4": {
"DigiComp\\Menu\\": "Classes"
"DigiComp\\Menu\\": "Classes/"
}
},
"config": {
"sort-packages": true,
"platform-check": true
},
"extra": {
"branch-alias": {
"dev-develop": "3.0.x-dev",
"dev-version/2.x-dev": "2.0.x-dev"
},
"neos": {
"package-key": "DigiComp.Menu"
},
"applied-flow-migrations": [
"TYPO3.Fluid-20150214130800",
"TYPO3.Fluid-20141121091700",