Skip to content

Commit

Permalink
TASK: Further changes to make it Flow 6.0 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Nov 4, 2019
1 parent 4cdf877 commit fbb9e51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Classes/Command/CrudGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use Neos\Flow\Package\Package;
use Neos\Flow\Package\PackageManager;
use Neos\Utility\Files;
use Neos\FluidAdaptor\View\StandaloneView;
use Neos\Flow\Annotations as Flow;
Expand All @@ -14,7 +15,7 @@ class CrudGeneratorService

/**
* @Flow\Inject
* @var \Neos\Flow\Package\PackageManagerInterface
* @var PackageManager
*/
protected $packageManager;

Expand All @@ -23,7 +24,6 @@ class CrudGeneratorService
*/
protected $generatedFiles = array();


/**
* Generate a controller with the given name for the given package
*
Expand All @@ -33,6 +33,7 @@ class CrudGeneratorService
* @param string $modelClassName The name of the model to base the controler on
* @param boolean $overwrite Overwrite any existing files?
* @return array An array of generated filenames
* @throws \Neos\FluidAdaptor\Exception
*/
public function generateCrudController($packageKey, $subpackage, $controllerName, $modelClassName, $overwrite = FALSE)
{
Expand Down
5 changes: 3 additions & 2 deletions Classes/Command/CrudKickstartCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@

use Neos\Flow\Cli\CommandController;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Package\PackageManager;

class CrudKickstartCommandController extends CommandController
{


/**
* @Flow\Inject
* @var \Neos\Flow\Package\PackageManagerInterface
* @var PackageManager
*/
protected $packageManager;

/**
* @Flow\Inject
* @var \Sandstorm\CrudForms\Command\CrudGeneratorService
* @var CrudGeneratorService
*/
protected $crudGeneratorService;

Expand Down
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/Internal/Form/DateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function initializeArguments()
// HINT: we use a format compatible with the input type Date
$this->registerArgument('format', 'string', 'A Format string compatible with the DateTimeConverter.', FALSE, 'MULTIPLE');
}

/**
* Renders the textfield.
*
Expand All @@ -40,7 +40,7 @@ public function render()
return $content;
}

protected function getNameWithoutPrefix()
protected function getNameWithoutPrefix(): string
{
return parent::getNameWithoutPrefix() . '[date]';
}
Expand Down

0 comments on commit fbb9e51

Please sign in to comment.