Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving more of YouTube into its own plugin
- Loading branch information
Showing
44 changed files
with
1,786 additions
and
681 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ src/main/assembly/dist | |
.idea/workspace.xml | ||
vendor | ||
composer.lock | ||
tubepress.php |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name = Core YouTube integration | ||
version = 1.0.0 | ||
description = Provides TubePress with the ability to work with YouTube |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* Copyright 2006 - 2012 Eric D. Hough (http://ehough.com) | ||
* | ||
* This file is part of TubePress (http://tubepress.org) | ||
* | ||
* TubePress is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* TubePress is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with TubePress. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
/** | ||
* Registers a few extensions to allow TubePress to work with Vimeo. | ||
*/ | ||
class tubepress_plugins_vimeo_YouTube | ||
{ | ||
public static function registerVimeoListeners() | ||
{ | ||
$loader = new ehough_pulsar_SymfonyUniversalClassLoader(); | ||
$loader->registerFallbackDirectory(dirname(__FILE__) . '/classes'); | ||
$loader->register(); | ||
|
||
$eventDispatcher = tubepress_impl_patterns_ioc_KernelServiceLocator::getEventDispatcher(); | ||
|
||
$eventDispatcher->addListener(tubepress_api_const_event_CoreEventNames::BOOT, | ||
array(new tubepress_plugins_vimeo_impl_listeners_VimeoOptionsRegistrar(), 'onBoot')); | ||
|
||
} | ||
} | ||
|
||
tubepress_plugins_vimeo_YouTube::registerVimeoListeners(); |
Oops, something went wrong.