DigiComp.FlowSessionLock/Tests/Functional/Fixtures/Controller/ExampleController.php
Ferdinand Kuhl 6e1079a81c
Some checks failed
ci/woodpecker/push/functional-tests Pipeline failed
ci/woodpecker/push/code-style Pipeline was successful
Allow PHP 8.1
- for that resolve a keyword conflict with the ReadOnly class
2023-01-10 11:55:58 +01:00

43 lines
1,001 B
PHP

<?php
namespace DigiComp\FlowSessionLock\Tests\Functional\Fixtures\Controller;
use DigiComp\FlowSessionLock\Annotations as FlowSessionLock;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\Controller\ActionController;
class ExampleController extends ActionController
{
public const CONTROLLER_TIME = 200;
/**
* @Flow\Session(autoStart=true);
* @return string
*/
public function protectedAction()
{
\usleep(static::CONTROLLER_TIME * 1000);
return 'Hello World!';
}
/**
* @Flow\Session(autoStart=true);
* @FlowSessionLock\Unlock
* @return string
*/
public function unprotectedByAnnotationAction()
{
\usleep(static::CONTROLLER_TIME * 1000);
return 'Hello World!';
}
/**
* @Flow\Session(autoStart=true);
* @return string
*/
public function unprotectedByConfigurationAction()
{
\usleep(static::CONTROLLER_TIME * 1000);
return 'Hello World!';
}
}