kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			
		
			
				
	
	
		
			20 wiersze
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			20 wiersze
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
<?php
 | 
						|
 | 
						|
namespace App\Transformer\Api;
 | 
						|
 | 
						|
use App\Profile;
 | 
						|
use League\Fractal;
 | 
						|
 | 
						|
class MentionTransformer extends Fractal\TransformerAbstract
 | 
						|
{
 | 
						|
    public function transform(Profile $profile)
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            'id'       => (string) $profile->id,
 | 
						|
            'url'      => $profile->url(),
 | 
						|
            'username' => $profile->username,
 | 
						|
            'acct'     => $profile->username,
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |