Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
0bcfc41f
Commit
0bcfc41f
authored
Apr 16, 2019
by
François Agneray
Browse files
Suppression abstract class action
parent
271f7146
Changes
62
Hide whitespace changes
Inline
Side-by-side
src/Action/Login/ActivateAccountAction.php
View file @
0bcfc41f
...
...
@@ -17,7 +17,7 @@ use Psr\Http\Message\ResponseInterface as Response;
use
Swift_Mailer
;
use
Swift_Message
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\User
;
/**
...
...
@@ -27,8 +27,15 @@ use App\Entity\User;
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Action\Login
*/
final
class
ActivateAccountAction
extends
AbstractAction
final
class
ActivateAccountAction
{
use
ActionTrait
;
/**
* The logger interface is the central access point to log anis information
*/
private
$logger
;
/**
* The EntityManager is the central access point to Doctrine ORM functionality (metadata database)
*
...
...
@@ -52,7 +59,7 @@ final class ActivateAccountAction extends AbstractAction
*/
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
Swift_Mailer
$mailer
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
mailer
=
$mailer
;
}
...
...
src/Action/Login/ChangePasswordAction.php
View file @
0bcfc41f
...
...
@@ -17,7 +17,7 @@ use Psr\Http\Message\ResponseInterface as Response;
use
Swift_Mailer
;
use
Swift_Message
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
/**
* With this action the anis user can change his password (POST)
...
...
@@ -25,8 +25,15 @@ use App\Action\AbstractAction;
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Action\Login
*/
final
class
ChangePasswordAction
extends
AbstractAction
final
class
ChangePasswordAction
{
use
ActionTrait
;
/**
* The logger interface is the central access point to log anis information
*/
private
$logger
;
/**
* The EntityManager is the central access point to Doctrine ORM functionality (metadata database)
*
...
...
@@ -50,7 +57,7 @@ final class ChangePasswordAction extends AbstractAction
*/
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
Swift_Mailer
$mailer
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
mailer
=
$mailer
;
}
...
...
src/Action/Login/NewPasswordAction.php
View file @
0bcfc41f
...
...
@@ -16,7 +16,7 @@ use Psr\Http\Message\ServerRequestInterface as Request;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
Swift_Mailer
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
/**
* This action asks for a new password
...
...
@@ -24,8 +24,15 @@ use App\Action\AbstractAction;
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Action\Login
*/
final
class
NewPasswordAction
extends
AbstractAction
final
class
NewPasswordAction
{
use
ActionTrait
;
/**
* The logger interface is the central access point to log anis information
*/
private
$logger
;
/**
* The EntityManager is the central access point to Doctrine ORM functionality (metadata database)
*
...
...
@@ -49,7 +56,7 @@ final class NewPasswordAction extends AbstractAction
*/
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
Swift_Mailer
$mailer
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
mailer
=
$mailer
;
}
...
...
src/Action/Login/RegisterAction.php
View file @
0bcfc41f
...
...
@@ -17,7 +17,7 @@ use Psr\Http\Message\ResponseInterface as Response;
use
Swift_Mailer
;
use
Swift_Message
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\User
;
/**
...
...
@@ -26,8 +26,15 @@ use App\Entity\User;
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Action\Login
*/
final
class
RegisterAction
extends
AbstractAction
final
class
RegisterAction
{
use
ActionTrait
;
/**
* The logger interface is the central access point to log anis information
*/
private
$logger
;
/**
* The EntityManager is the central access point to Doctrine ORM functionality (metadata database)
*
...
...
@@ -51,7 +58,7 @@ final class RegisterAction extends AbstractAction
*/
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
Swift_Mailer
$mailer
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
mailer
=
$mailer
;
}
...
...
src/Action/Login/TokenAction.php
View file @
0bcfc41f
...
...
@@ -18,7 +18,7 @@ use Lcobucci\JWT\Builder as JwtBuilder;
use
Lcobucci\JWT\Signer
as
JwtSigner
;
use
Lcobucci\JWT\Token
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
/**
* Get a valid token (jwt) for a anis user (POST)
...
...
@@ -26,8 +26,15 @@ use App\Action\AbstractAction;
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Action\Login
*/
final
class
TokenAction
extends
AbstractAction
final
class
TokenAction
{
use
ActionTrait
;
/**
* The logger interface is the central access point to log anis information
*/
private
$logger
;
/**
* The EntityManager is the central access point to Doctrine ORM functionality (metadata database)
*
...
...
@@ -59,7 +66,7 @@ final class TokenAction extends AbstractAction
*/
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
JwtBuilder
$jwtBuilder
,
JwtSigner
$jwtSigner
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
jwtBuilder
=
$jwtBuilder
;
$this
->
jwtSigner
=
$jwtSigner
;
...
...
src/Action/Meta/AttributeListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,10 +15,13 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
AttributeListAction
extends
AbstractAction
final
class
AttributeListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
private
$datasetCriteriaFamilyMaxDisplay
;
private
$datasetCriteriaFamilyList
;
...
...
@@ -29,7 +32,7 @@ final class AttributeListAction extends AbstractAction
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
datasetCriteriaFamilyMaxDisplay
=
0
;
$this
->
datasetCriteriaFamilyList
=
array
();
...
...
src/Action/Meta/CategoryAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Category
;
final
class
CategoryAction
extends
AbstractAction
final
class
CategoryAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/CategoryListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Category
;
final
class
CategoryListAction
extends
AbstractAction
final
class
CategoryListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/DatabaseAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Database
;
final
class
DatabaseAction
extends
AbstractAction
final
class
DatabaseAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/DatabaseListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Database
;
final
class
DatabaseListAction
extends
AbstractAction
final
class
DatabaseListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/DatasetAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,17 +15,20 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Dataset
;
use
App\Entity\DatasetFamily
;
final
class
DatasetAction
extends
AbstractAction
final
class
DatasetAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/DatasetCriteriaFamilyListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,15 +15,18 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
DatasetCriteriaFamilyListAction
extends
AbstractAction
final
class
DatasetCriteriaFamilyListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/DatasetListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,20 +15,23 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Utils\DBALConnectionFactory
;
use
App\Entity\Dataset
;
use
App\Entity\Project
;
use
App\Entity\DatasetFamily
;
final
class
DatasetListAction
extends
AbstractAction
final
class
DatasetListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
private
$dcf
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
,
DBALConnectionFactory
$dcf
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
$this
->
dcf
=
$dcf
;
}
...
...
src/Action/Meta/DatasetOutputFamilyListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,15 +15,18 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
DatasetOutputFamilyListAction
extends
AbstractAction
final
class
DatasetOutputFamilyListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/FamilyAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,15 +15,18 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
FamilyAction
extends
AbstractAction
final
class
FamilyAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/FamilyListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,15 +15,18 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
FamilyListAction
extends
AbstractAction
final
class
FamilyListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/FileAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\File
;
final
class
FileAction
extends
AbstractAction
final
class
FileAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/FileListAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,17 +15,20 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\File
;
use
App\Entity\Dataset
;
final
class
FileListAction
extends
AbstractAction
final
class
FileListAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/FileProxyAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,15 +15,18 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
final
class
FileProxyAction
extends
AbstractAction
final
class
FileProxyAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
src/Action/Meta/GroupAction.php
View file @
0bcfc41f
<?php
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of ANIS SERVER API.
*
...
...
@@ -15,16 +15,19 @@ use Doctrine\ORM\EntityManagerInterface;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
App\
Action\Abstract
Action
;
use
App\
Utils\
Action
Trait
;
use
App\Entity\Group
;
final
class
GroupAction
extends
AbstractAction
final
class
GroupAction
{
use
ActionTrait
;
private
$logger
;
private
$em
;
public
function
__construct
(
LoggerInterface
$logger
,
EntityManagerInterface
$em
)
{
parent
::
__construct
(
$logger
)
;
$this
->
logger
=
$logger
;
$this
->
em
=
$em
;
}
...
...
Prev
1
2
3
4
Next
Write
Preview