Skip to content

Commit

Permalink
Move attributes to Twig\Attribute namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 1, 2023
1 parent 99999e9 commit 75a7534
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Twig\Extension\Attribute;
namespace Twig\Attribute;

/**
* Identifies a class that uses PHP attributes to define filters, functions, or tests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Twig\Extension\Attribute;
namespace Twig\Attribute;

use Twig\TwigFilter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Twig\Extension\Attribute;
namespace Twig\Attribute;

use Twig\TwigFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Twig\Extension\Attribute;
namespace Twig\Attribute;

use Twig\TwigTest;

Expand Down
6 changes: 3 additions & 3 deletions src/Extension/AttributeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Twig\Extension;

use Twig\Attribute\AsTwigFilter;
use Twig\Attribute\AsTwigFunction;
use Twig\Attribute\AsTwigTest;
use Twig\Environment;
use Twig\Extension\Attribute\AsTwigFilter;
use Twig\Extension\Attribute\AsTwigFunction;
use Twig\Extension\Attribute\AsTwigTest;
use Twig\TwigFilter;
use Twig\TwigFunction;
use Twig\TwigTest;
Expand Down
8 changes: 4 additions & 4 deletions tests/Extension/Fixtures/ExtensionWithAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Twig\Tests\Extension\Fixtures;

use Twig\Attribute\AsTwigExtension;
use Twig\Attribute\AsTwigFilter;
use Twig\Attribute\AsTwigFunction;
use Twig\Attribute\AsTwigTest;
use Twig\Environment;
use Twig\Extension\Attribute\AsTwigExtension;
use Twig\Extension\Attribute\AsTwigFilter;
use Twig\Extension\Attribute\AsTwigFunction;
use Twig\Extension\Attribute\AsTwigTest;

#[AsTwigExtension]
class ExtensionWithAttributes
Expand Down

0 comments on commit 75a7534

Please sign in to comment.