load-v4p11.php 1.0 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. require dirname(__FILE__) . '/Puc/v4p11/Autoloader.php';
  3. new Puc_v4p11_Autoloader();
  4. require dirname(__FILE__) . '/Puc/v4p11/Factory.php';
  5. require dirname(__FILE__) . '/Puc/v4/Factory.php';
  6. //Register classes defined in this version with the factory.
  7. foreach (
  8. array(
  9. 'Plugin_UpdateChecker' => 'Puc_v4p11_Plugin_UpdateChecker',
  10. 'Theme_UpdateChecker' => 'Puc_v4p11_Theme_UpdateChecker',
  11. 'Vcs_PluginUpdateChecker' => 'Puc_v4p11_Vcs_PluginUpdateChecker',
  12. 'Vcs_ThemeUpdateChecker' => 'Puc_v4p11_Vcs_ThemeUpdateChecker',
  13. 'GitHubApi' => 'Puc_v4p11_Vcs_GitHubApi',
  14. 'BitBucketApi' => 'Puc_v4p11_Vcs_BitBucketApi',
  15. 'GitLabApi' => 'Puc_v4p11_Vcs_GitLabApi',
  16. )
  17. as $pucGeneralClass => $pucVersionedClass
  18. ) {
  19. Puc_v4_Factory::addVersion($pucGeneralClass, $pucVersionedClass, '4.11');
  20. //Also add it to the minor-version factory in case the major-version factory
  21. //was already defined by another, older version of the update checker.
  22. Puc_v4p11_Factory::addVersion($pucGeneralClass, $pucVersionedClass, '4.11');
  23. }