-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnnotationPackager.php
More file actions
29 lines (25 loc) · 1009 Bytes
/
AnnotationPackager.php
File metadata and controls
29 lines (25 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* This file is part of Blitz PHP framework.
*
* (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace BlitzPHP\Annotations;
use BlitzPHP\Annotations\Http\AjaxOnlyAnnotation;
use BlitzPHP\Annotations\Http\RequestMappingAnnotation;
use BlitzPHP\Annotations\Validation\RangeAnnotation;
use BlitzPHP\Annotations\Validation\RequiredAnnotation;
use mindplay\annotations\AnnotationManager;
abstract class AnnotationPackager
{
public static function register(AnnotationManager $annotationManager)
{
$annotationManager->registry['ajaxOnly'] = AjaxOnlyAnnotation::class;
$annotationManager->registry['range'] = RangeAnnotation::class;
$annotationManager->registry['requestMapping'] = RequestMappingAnnotation::class;
$annotationManager->registry['required'] = RequiredAnnotation::class;
}
}