Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
}
},
"require": {
"php": ">=5.4",
"zf-commons/zfc-user": "~1.2",
"zf-commons/zfc-user-doctrine-orm": "1.*"
"php": "^7.2|~8.0",
"zf-commons/zfc-user": "dev-patch-1",
"zf-commons/zfc-user-doctrine-orm": "dev-patch-3"
},
"require-dev": {
"phpunit/phpunit": "~4.0.0",
Expand All @@ -35,5 +35,17 @@
"psr-0": {
"Eye4web\\ZfcUser\\Settings\\": "src/"
}
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/samsonasik/ZfcUserDoctrineORM",
"no-api": true
},
{
"type": "vcs",
"url": "https://github.com/samsonasik/ZfcUser",
"no-api": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class UserSettingPluginFactory implements FactoryInterface
class UserSettingPluginFactory implements \Zend\ServiceManager\Factory\FactoryInterface
{
public function createService(ServiceLocatorInterface $pluginManager)
public function __invoke(\Psr\Container\ContainerInterface $pluginManager, $requestedName, array $options = null)
{
/** @var ServiceLocatorInterface $serviceLocator */
$serviceLocator = $pluginManager->getServiceLocator();
$serviceLocator = $pluginManager;

$userSettingsService = $serviceLocator->get('Eye4web\ZfcUser\Settings\Service\UserSettingsService');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class UserSettingMapperFactory implements FactoryInterface
class UserSettingMapperFactory implements \Zend\ServiceManager\Factory\FactoryInterface
{
/**
* Create service
*
* @param ServiceLocatorInterface $serviceLocator
* @return mixed
*/
public function createService(ServiceLocatorInterface $serviceLocator)
public function __invoke(\Psr\Container\ContainerInterface $serviceLocator, $requestedName, array $options = null)
{
$entityManager = $serviceLocator->get('zfcuser_doctrine_em');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class UserSettingsServiceFactory implements FactoryInterface
class UserSettingsServiceFactory implements \Zend\ServiceManager\Factory\FactoryInterface
{
/**
* Create service
*
* @param ServiceLocatorInterface $serviceLocator
* @return mixed
*/
public function createService(ServiceLocatorInterface $serviceLocator)
public function __invoke(\Psr\Container\ContainerInterface $serviceLocator, $requestedName, array $options = null)
{
$mapper = $serviceLocator->get('Eye4web\ZfcUser\Settings\Mapper\DoctrineORM\UserSettingMapper');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class UserSettingHelperFactory implements FactoryInterface
class UserSettingHelperFactory implements \Zend\ServiceManager\Factory\FactoryInterface
{
/**
* Create service
*
* @param ServiceLocatorInterface $helperLocator
* @return UserSettingHelper|mixed
*/
public function createService(ServiceLocatorInterface $helperLocator)
public function __invoke(\Psr\Container\ContainerInterface $helperLocator, $requestedName, array $options = null)
{
/** @var ServiceLocatorInterface $serviceLocator */
$serviceLocator = $helperLocator->getServiceLocator();

$userSettingsService = $serviceLocator->get('Eye4web\ZfcUser\Settings\Service\UserSettingsService');
$zfcUserIdentity = $helperLocator->get('ZfcUserIdentity');
$userSettingsService = $helperLocator->get('Eye4web\ZfcUser\Settings\Service\UserSettingsService');
$zfcUserIdentity = $helperLocator->get('ViewHelperManager')->get('ZfcUserIdentity');

return new UserSettingHelper($userSettingsService, $zfcUserIdentity);
}
Expand Down