Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
removes getHost method. no longer in use
Browse files Browse the repository at this point in the history
  • Loading branch information
cdowdy committed Jun 28, 2017
1 parent 8901f84 commit 02770b0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Html5VideoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,22 +336,6 @@ protected function mediaFragment( $cfg )
}


// since we can pass a CDN URL to our twig function in addition to
// the files from either {{ record.videoFile }} or from the files directory.. ie. 'site/files/video.webm'
// we'll get the host of the string(filename) if it exists.
/**
* @param $string
*
* @return string
*/
public function getHost( $string )
{
$url = parse_url( trim( $string ) );

return trim( $url['host'] ? $url['host'] : array_shift( explode( '/', $url['path'], 2 ) ) );
}


/**
* @return array
*/
Expand Down

0 comments on commit 02770b0

Please sign in to comment.