eZ\Publish\Core\Repository\UserService::__construct PHP Method

__construct() public method

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\User\Handler $userHandler, array $settings = [] )
$repository eZ\Publish\API\Repository\Repository
$userHandler eZ\Publish\SPI\Persistence\User\Handler
$settings array
    public function __construct(RepositoryInterface $repository, Handler $userHandler, array $settings = array())
    {
        $this->repository = $repository;
        $this->userHandler = $userHandler;
        // Union makes sure default settings are ignored if provided in argument
        $this->settings = $settings + array('defaultUserPlacement' => 12, 'userClassID' => 4, 'userGroupClassID' => 3, 'hashType' => User::PASSWORD_HASH_MD5_USER, 'siteName' => 'ez.no');
    }