the browser-facing portion of osu!
at master 18 lines 597 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Libraries\Transformers; 7 8use League\Fractal\Manager; 9use League\Fractal\Resource\ResourceInterface; 10use League\Fractal\ScopeFactory as FractalScopeFactory; 11 12class ScopeFactory extends FractalScopeFactory 13{ 14 public function createScopeFor(Manager $manager, ResourceInterface $resource, $scopeIdentifier = null): Scope 15 { 16 return new Scope($manager, $resource, $scopeIdentifier); 17 } 18}