Skip to content
Merged
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
15 changes: 15 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ Services are autowired and autoconfigured via `src/Resources/config/services.php

## Code Style

- Every PHP file must include the license header between `declare(strict_types=1);` and `namespace`:
```php
<?php

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ...;
```
- PHP 8.5+ with strict types (`declare(strict_types=1);`)
- PSR-4 autoloading: `ChamberOrchestra\MenuBundle\` → `src/`
- `@PER-CS` + `@Symfony` PHP-CS-Fixer rulesets
Expand Down
7 changes: 7 additions & 0 deletions src/Accessor/Accessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Accessor;

use ChamberOrchestra\MenuBundle\Menu\Item;
Expand Down
7 changes: 7 additions & 0 deletions src/ChamberOrchestraMenuBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
Expand Down
7 changes: 7 additions & 0 deletions src/DependencyInjection/ChamberOrchestraMenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
Expand Down
7 changes: 7 additions & 0 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Exception;

interface ExceptionInterface
Expand Down
7 changes: 7 additions & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Exception;

class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
Expand Down
7 changes: 7 additions & 0 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Exception;

class LogicException extends \LogicException implements ExceptionInterface
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/BadgeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

use ChamberOrchestra\MenuBundle\Menu\Item;
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/ExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

interface ExtensionInterface
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/LabelExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

class LabelExtension implements ExtensionInterface
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/RoutingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Extension/RuntimeExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory\Extension;

use ChamberOrchestra\MenuBundle\Menu\Item;
Expand Down
7 changes: 7 additions & 0 deletions src/Factory/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Factory;

use ChamberOrchestra\MenuBundle\Factory\Extension\ExtensionInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Matcher/Matcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Matcher;

use ChamberOrchestra\MenuBundle\Matcher\Voter\RouteVoter;
Expand Down
7 changes: 7 additions & 0 deletions src/Matcher/Voter/RouteVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Matcher\Voter;

use ChamberOrchestra\MenuBundle\Exception\InvalidArgumentException;
Expand Down
7 changes: 7 additions & 0 deletions src/Menu/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Menu;

use Doctrine\Common\Collections\ArrayCollection;
Expand Down
7 changes: 7 additions & 0 deletions src/Menu/MenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Menu;

use ChamberOrchestra\MenuBundle\Exception\LogicException;
Expand Down
7 changes: 7 additions & 0 deletions src/Navigation/AbstractCachedNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Navigation;

use Symfony\Contracts\Cache\ItemInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Navigation/AbstractNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Navigation;

use ChamberOrchestra\MenuBundle\Menu\MenuBuilder;
Expand Down
7 changes: 7 additions & 0 deletions src/Navigation/ClosureNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Navigation;

use ChamberOrchestra\MenuBundle\Menu\MenuBuilder;
Expand Down
7 changes: 7 additions & 0 deletions src/Navigation/NavigationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Navigation;

use ChamberOrchestra\MenuBundle\Menu\MenuBuilder;
Expand Down
7 changes: 7 additions & 0 deletions src/NavigationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle;

use ChamberOrchestra\MenuBundle\Factory\Extension\RuntimeExtensionInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Registry/NavigationRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Registry;

use ChamberOrchestra\MenuBundle\Exception\InvalidArgumentException;
Expand Down
7 changes: 7 additions & 0 deletions src/Renderer/TwigRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Renderer;

use ChamberOrchestra\MenuBundle\Accessor\Accessor;
Expand Down
7 changes: 7 additions & 0 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use ChamberOrchestra\MenuBundle\Factory\Extension\ExtensionInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Twig/Helper/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Twig\Helper;

use ChamberOrchestra\MenuBundle\Navigation\NavigationInterface;
Expand Down
7 changes: 7 additions & 0 deletions src/Twig/MenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

declare(strict_types=1);

/*
* This file is part of the ChamberOrchestra package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ChamberOrchestra\MenuBundle\Twig;

use Twig\Extension\AbstractExtension;
Expand Down
Loading