parse() 공개 메소드

Parse a request path into Croppa instructions
public parse ( string $request ) : array | boolean
$request string
리턴 array | boolean | boolean
예제 #1
0
 public function testCropsInSubDirectory()
 {
     $url = new URL(['path' => 'images/(?:crops/)?(.*)$']);
     $this->assertEquals(['file.jpg', 200, 100, []], $url->parse('images/crops/file-200x100.jpg'));
 }