Commit 7be4b05 1 parent 79fbb9d commit 7be4b05 Copy full SHA for 7be4b05
File tree 1 file changed +16
-16
lines changed
lib/MusicBrainz/Server/WebService/Serializer/JSON/LD
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -25,26 +25,26 @@ our @EXPORT_OK = qw(
25
25
# Series
26
26
# URL
27
27
28
- my %serializers =
29
- map {
30
- my $class = " MusicBrainz::Server::WebService::Serializer::JSON::LD::$_ " ;
31
- load_class($class );
32
- " MusicBrainz::Server::Entity::$_ " => $class -> new
33
- } qw(
34
- Area
35
- Artist
36
- Label
37
- Place
38
- Recording
39
- Release
40
- ReleaseGroup
41
- Work
42
- ) ;
43
-
44
28
sub serializer
45
29
{
46
30
my $entity = shift ;
47
31
32
+ CORE::state %serializers =
33
+ map {
34
+ my $class = " MusicBrainz::Server::WebService::Serializer::JSON::LD::$_ " ;
35
+ load_class($class );
36
+ " MusicBrainz::Server::Entity::$_ " => $class -> new
37
+ } qw(
38
+ Area
39
+ Artist
40
+ Label
41
+ Place
42
+ Recording
43
+ Release
44
+ ReleaseGroup
45
+ Work
46
+ ) ;
47
+
48
48
for my $class (keys %serializers ) {
49
49
if ($entity -> isa($class )) {
50
50
return $serializers {$class };
You can’t perform that action at this time.
0 commit comments