This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE to Constructor/::create && example
I made a breaking change to the constructor and factory creation functions to allow for enabling/disabling of almost all features via the constructor. A discussion was brought up regarding the chaining on /r/PHP and it was mentioned that for programmatic usefulness, it would be better to have an array of flags to set during the construction, instead of testing for certain variables and then triggering the function call to the YTAudio object. As such, I've made it so that instead of having two optional parameters, the constructor and factory creation function have a single optional parameter (after the still required one). This MUST be an array, but can be either associated, indexed, or a mix. I've added usage of this new constructor to the example.php file and modified the original pattern to omit the optional parameters. Both uses in the example.php file will output the same XHTML. Additionally, added the ability to turn on/off HTTPS. (On by def.)
- Loading branch information
Showing
2 changed files
with
59 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters