<commit_before><?php

declare(strict_types=1);

namespace App\Controller\API;

use App\Entity\Manager\DepartmentManager;
use Symfony\Component\Routing\Annotation\Route;

/**
 * @Route("/api/{version<v1|v3>}/departments")
 */
class Departments extends ReadWriteController
{
    public function __construct(DepartmentManager $manager)
    {
        parent::__construct($manager, 'departments');
    }
}
<commit_msg>puts department endpoint into v1-only and read-only mode.<commit_after><?php

declare(strict_types=1);

namespace App\Controller\API;

use App\Entity\Manager\DepartmentManager;
use App\Tests\V1ReadEndpointTest;
use Symfony\Component\Routing\Annotation\Route;

/**
 * @Route("/api/{version<v1>}/departments")
 */
class Departments extends ReadOnlyController
{
    public function __construct(DepartmentManager $manager)
    {
        parent::__construct($manager, 'departments');
    }
}

{'fraction_non_alphanumeric': 0.13, 'fraction_numerical': 0.0077777777777777776, 'mean_word_length': 5.129251700680272, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6700214', 'n_tokens_mistral': 277, 'n_tokens_neox': 268, 'n_words': 47}