Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Do not import classes from the global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann-TYT committed Feb 16, 2021
1 parent 4c8c80d commit 6d5f7d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/Configuration/Cache.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* The Cache class handles the Cache annotation parts.
*
* @author Fabien Potencier <fabien@symfony.com>
* @Annotation
*/
#[Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class Cache extends ConfigurationAnnotation
{
/**
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/Entity.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* Doctrine-specific ParamConverter with an easier syntax.
*
* @author Ryan Weaver <ryan@knpuniversity.com>
* @Annotation
*/
#[Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class Entity extends ParamConverter
{
public function setExpr($expr)
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/IsGranted.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* The Security class handles the Security annotation.
*
* @author Ryan Weaver <ryan@knpuniversity.com>
* @Annotation
*/
#[Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class IsGranted extends ConfigurationAnnotation
{
/**
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/ParamConverter.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* The ParamConverter class handles the ParamConverter annotation parts.
*
* @author Fabien Potencier <fabien@symfony.com>
* @Annotation
*/
#[Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class ParamConverter extends ConfigurationAnnotation
{
/**
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/Security.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* The Security class handles the Security annotation.
*
* @author Fabien Potencier <fabien@symfony.com>
* @Annotation
*/
#[Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class Security extends ConfigurationAnnotation
{
/**
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/Template.php
Expand Up @@ -11,15 +11,13 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

use Attribute;

/**
* The Template class handles the Template annotation parts.
*
* @author Fabien Potencier <fabien@symfony.com>
* @Annotation
*/
#[Attribute(\Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::TARGET_METHOD)]
class Template extends ConfigurationAnnotation
{
/**
Expand Down

0 comments on commit 6d5f7d0

Please sign in to comment.