Advanced Ads - Version 1.7.9

Version Description

  • added frontend error checks to the admin bar
  • changed default value for AdSense limit from true to false due to AdSense policy change, read more
  • fixed unhighlighted placement type in Chrome
Download this release

Release Info

Developer webzunft
Plugin Icon 128x128 Advanced Ads
Version 1.7.9
Comparing to
See all releases

Code changes from version 1.7.8 to 1.7.9

Files changed (55) hide show
  1. admin/assets/css/admin.css +5 -4
  2. admin/assets/img/advertisement.png +0 -0
  3. admin/assets/js/admin.js +2 -1
  4. admin/assets/js/advertisement.js +1 -0
  5. admin/includes/class-ad-type.php +11 -1
  6. admin/views/ad-list-filters.php +5 -3
  7. admin/views/ad-list-timing-column.php +1 -1
  8. admin/views/notices/adblock.php +4 -4
  9. advanced-ads.php +3 -3
  10. classes/display-conditions.php +9 -1
  11. classes/frontend_checks.php +236 -0
  12. classes/plugin.php +2 -1
  13. composer.lock +25 -17
  14. modules/gadsense/includes/class-gadsense-data.php +52 -60
  15. modules/marketpress-license/admin.php +8 -7
  16. readme.txt +7 -1
  17. vendor/autoload_52.php +1 -1
  18. vendor/composer/ClassLoader.php +4 -4
  19. vendor/composer/LICENSE +1 -1
  20. vendor/composer/autoload_classmap.php +75 -0
  21. vendor/composer/autoload_namespaces.php +0 -1
  22. vendor/composer/autoload_psr4.php +1 -0
  23. vendor/composer/autoload_real.php +20 -18
  24. vendor/composer/autoload_real_52.php +3 -3
  25. vendor/composer/autoload_static.php +151 -0
  26. vendor/composer/installed.json +51 -43
  27. vendor/composer/installers/README.md +34 -7
  28. vendor/composer/installers/composer.json +14 -2
  29. vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php +6 -2
  30. vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php +9 -0
  31. vendor/composer/installers/src/Composer/Installers/BaseInstaller.php +4 -3
  32. vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php +62 -25
  33. vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php +34 -0
  34. vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php +10 -0
  35. vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php +2 -0
  36. vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php +29 -0
  37. vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php +11 -0
  38. vendor/composer/installers/src/Composer/Installers/Installer.php +14 -1
  39. vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php +2 -0
  40. vendor/composer/installers/src/Composer/Installers/MauticInstaller.php +25 -0
  41. vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php +11 -0
  42. vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php +29 -0
  43. vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php +24 -0
  44. vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php +10 -0
  45. vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php +3 -1
  46. vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php +2 -0
  47. vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php +10 -0
  48. vendor/composer/installers/src/Composer/Installers/YawikInstaller.php +32 -0
  49. vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php +22 -4
  50. vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php +76 -0
  51. vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php +68 -0
  52. vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php +64 -0
  53. vendor/xrstf/composer-php52/README.md +24 -16
  54. vendor/xrstf/composer-php52/composer.json +2 -3
  55. vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php +2 -2
admin/assets/css/admin.css CHANGED
@@ -44,8 +44,8 @@ h2.hndle .advads-hndlelinks a + a { margin-left: 1em; }
44
  #advads-ad-injection-box div pre input { width: 30em; }
45
  #advads-ad-injection-box .ui-accordion .ui-accordion-header { margin-top: 0; border-radius: 0; }
46
  #advads-ad-injection-box .ui-accordion .ui-accordion-content { border-radius: 0; }
47
- #advads-ad-injection-box .advads-ad-injection-box-button-wrap { width: 100px; float: left; margin-right: 10px; margin-bottom: 0px; padding: 1px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
48
- #advads-ad-injection-box .button-primary { display: block; margin-bottom: 10px; padding: 10px; width: 100px; height: 75px; background-size: 100px 75px; font-size: 1.5em; text-indent: -9999px; border: solid 1px #0085ba; }
49
  #advads-ad-injection-box .button-primary { box-shadow: 0px 0px 2px #0085ba; }
50
  #advads-ad-injection-box button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; }
51
  #advads-ad-injection-box input[type="number"] { width: 4em; }
@@ -193,11 +193,12 @@ fieldset.advads-group-add-ad { margin-top: 1em; }
193
  AD PLACEMENTS
194
  */
195
  .advads-placement-description { display: none; }
196
- .advads-placements-new-form .advads-placement-type { position: relative; top: 0; left: 0; float: left; margin: 10px 10px 0; }
197
  .advads-placements-new-form .advads-placement-type .ui-button { background: none; border-radius: 0; height: auto; }
198
- .advads-placements-new-form .advads-placement-type .ui-button-text { padding: 0; width: 140px; height: 105px; border: solid 1px #0085ba; border-radius: 3px; box-shadow: 0px 0px 2px #0085ba; overflow: hidden; }
199
  .advads-placements-new-form .advads-placement-type .ui-button-text img { max-width: 100%; pointer-events: none; }
200
  .advads-placements-new-form .advads-placement-type label { display: inline-block; width: 140px; text-align: center; border: 0; padding: 0; }
 
201
  .advads-placements-new-form .advads-placement-type label .description { padding: 10px; }
202
  .advads-placements-new-form .advads-error-message { display: none; }
203
  .advads-placements-table { min-width: 80%; border-collapse: collapse; background: #fff; }
44
  #advads-ad-injection-box div pre input { width: 30em; }
45
  #advads-ad-injection-box .ui-accordion .ui-accordion-header { margin-top: 0; border-radius: 0; }
46
  #advads-ad-injection-box .ui-accordion .ui-accordion-content { border-radius: 0; }
47
+ #advads-ad-injection-box .advads-ad-injection-box-button-wrap { width: 100px; float: left; margin-right: 10px; margin-bottom: 10px; padding: 1px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
48
+ #advads-ad-injection-box .button-primary { display: block; margin-bottom: 10px; padding: 0px; width: 100%; height: 75px; background-size: 100px 75px; font-size: 1.5em; text-indent: -9999px; border: solid 1px #0085ba; }
49
  #advads-ad-injection-box .button-primary { box-shadow: 0px 0px 2px #0085ba; }
50
  #advads-ad-injection-box button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; }
51
  #advads-ad-injection-box input[type="number"] { width: 4em; }
193
  AD PLACEMENTS
194
  */
195
  .advads-placement-description { display: none; }
196
+ .advads-placements-new-form .advads-placement-type { position: relative; top: 0; left: 0; float: left; width: 140px; margin: 15px 0 0 15px; }
197
  .advads-placements-new-form .advads-placement-type .ui-button { background: none; border-radius: 0; height: auto; }
198
+ .advads-placements-new-form .advads-placement-type .ui-button-text { padding: 0; width: 140px; height: 105px; border: solid 1px #0085ba; border-radius: 3px; box-shadow: 0px 0px 2px #0085ba; overflow: hidden; box-sizing: border-box; }
199
  .advads-placements-new-form .advads-placement-type .ui-button-text img { max-width: 100%; pointer-events: none; }
200
  .advads-placements-new-form .advads-placement-type label { display: inline-block; width: 140px; text-align: center; border: 0; padding: 0; }
201
+ .advads-placements-new-form .advads-buttonset .ui-button.ui-state-active { outline: 8px solid #2ea2cc; }
202
  .advads-placements-new-form .advads-placement-type label .description { padding: 10px; }
203
  .advads-placements-new-form .advads-error-message { display: none; }
204
  .advads-placements-table { min-width: 80%; border-collapse: collapse; background: #fff; }
admin/assets/img/advertisement.png DELETED
Binary file
admin/assets/js/admin.js CHANGED
@@ -724,7 +724,8 @@ function advads_ad_list_build_filters() {
724
  advads_ad_list_add_items_to_dropdowns( jQuery( '.advads-ad-size' ), $filter_size );
725
  advads_ad_list_add_items_to_dropdowns( jQuery( '.taxonomy-advanced_ads_groups a' ), $filter_group );
726
  // if such classes exist on the page - show related <option>s
727
- jQuery.each( ['advads-filter-future', 'advads-filter-any-exp-date', 'advads-filter-expired' ], function( i, v ) {
 
728
  if ( $ad_planning_col.hasClass( v ) ) {
729
  $filter_date.children( 'option[value="' + v + '"] ' ).show();
730
  }
724
  advads_ad_list_add_items_to_dropdowns( jQuery( '.advads-ad-size' ), $filter_size );
725
  advads_ad_list_add_items_to_dropdowns( jQuery( '.taxonomy-advanced_ads_groups a' ), $filter_group );
726
  // if such classes exist on the page - show related <option>s
727
+ jQuery( '#advads-filter-date option:gt(0)' ).each( function() {
728
+ var v = jQuery( this ).val();
729
  if ( $ad_planning_col.hasClass( v ) ) {
730
  $filter_date.children( 'option[value="' + v + '"] ' ).show();
731
  }
admin/assets/js/advertisement.js ADDED
@@ -0,0 +1 @@
 
1
+ var advanced_ads_adblocker_test = true;
admin/includes/class-ad-type.php CHANGED
@@ -161,6 +161,10 @@ class Advanced_Ads_Admin_Ad_Type {
161
  $html_classes .= ' advads-filter-future';
162
  }
163
 
 
 
 
 
164
  include ADVADS_BASE_PATH . 'admin/views/ad-list-timing-column.php';
165
  }
166
  }
@@ -174,6 +178,12 @@ class Advanced_Ads_Admin_Ad_Type {
174
  return;
175
  }
176
 
 
 
 
 
 
 
177
  include ADVADS_BASE_PATH . 'admin/views/ad-list-filters.php';
178
  }
179
 
@@ -437,7 +447,7 @@ class Advanced_Ads_Admin_Ad_Type {
437
  $utc_ts = $ad->expiry_date ? $ad->expiry_date : time();
438
  $utc_time = date_create( '@' . $utc_ts );
439
  $tz_option = get_option( 'timezone_string' );
440
- $exp_time = clone( $utc_time );
441
 
442
  if ( $tz_option ) {
443
  $exp_time->setTimezone( Advanced_Ads_Admin::get_wp_timezone() );
161
  $html_classes .= ' advads-filter-future';
162
  }
163
 
164
+ ob_start();
165
+ do_action_ref_array( 'advanced-ads-ad-list-timing-column-after', array( $ad, &$html_classes ) );
166
+ $content_after = ob_get_clean();
167
+
168
  include ADVADS_BASE_PATH . 'admin/views/ad-list-timing-column.php';
169
  }
170
  }
178
  return;
179
  }
180
 
181
+ $timing_filter = apply_filters( 'advanced-ads-ad-list-timing-column-filter', array(
182
+ 'advads-filter-expired' => __( 'expired', 'advanced-ads' ),
183
+ 'advads-filter-any-exp-date' => __( 'any expiry date', 'advanced-ads' ),
184
+ 'advads-filter-future' => __( 'planned', 'advanced-ads' )
185
+ ) );
186
+
187
  include ADVADS_BASE_PATH . 'admin/views/ad-list-filters.php';
188
  }
189
 
447
  $utc_ts = $ad->expiry_date ? $ad->expiry_date : time();
448
  $utc_time = date_create( '@' . $utc_ts );
449
  $tz_option = get_option( 'timezone_string' );
450
+ $exp_time = clone $utc_time;
451
 
452
  if ( $tz_option ) {
453
  $exp_time->setTimezone( Advanced_Ads_Admin::get_wp_timezone() );
admin/views/ad-list-filters.php CHANGED
@@ -6,9 +6,11 @@
6
  </select>
7
  <select id="advads-filter-date">
8
  <option value="">- <?php _e( 'all ad dates', 'advanced-ads' ); ?> -</option>
9
- <option value="advads-filter-expired" style="display:none;"><?php _e( 'expired', 'advanced-ads' ); ?></option>
10
- <option value="advads-filter-any-exp-date" style="display:none;"><?php _e( 'any expiry date', 'advanced-ads' ); ?></option>
11
- <option value="advads-filter-future" style="display:none;"><?php _e( 'planned', 'advanced-ads' ); ?></option>
 
 
12
  </select>
13
  <select id="advads-filter-group">
14
  <option value="">- <?php _e( 'all ad groups', 'advanced-ads' ); ?> -</option>
6
  </select>
7
  <select id="advads-filter-date">
8
  <option value="">- <?php _e( 'all ad dates', 'advanced-ads' ); ?> -</option>
9
+ <?php
10
+ foreach ( $timing_filter as $_key => $_item ) {
11
+ printf( '<option value="%s" style="display:none;">%s</option>', $_key, $_item );
12
+ }
13
+ ?>
14
  </select>
15
  <select id="advads-filter-group">
16
  <option value="">- <?php _e( 'all ad groups', 'advanced-ads' ); ?> -</option>
admin/views/ad-list-timing-column.php CHANGED
@@ -23,6 +23,6 @@
23
  <p><?php printf( __( '<strong>expired</strong> %s', 'advanced-ads' ), $expiry_date->format( $expiry_date_format ) ); ?></p>
24
  <?php endif; ?>
25
  <?php endif; ?>
26
- <?php do_action( 'advanced-ads-ad-list-timing-column-after', $ad ); ?>
27
  </div>
28
  </fieldset>
23
  <p><?php printf( __( '<strong>expired</strong> %s', 'advanced-ads' ), $expiry_date->format( $expiry_date_format ) ); ?></p>
24
  <?php endif; ?>
25
  <?php endif; ?>
26
+ <?php echo $content_after; ?>
27
  </div>
28
  </fieldset>
admin/views/notices/adblock.php CHANGED
@@ -1,11 +1,11 @@
1
  <div class="advads-ad-block-check">
2
- <img src="<?php echo ADVADS_BASE_URL . 'admin/assets/img/advertisement.png' ?>" width="1" height="1"/>
3
  <div class="message error" style="display: none;"><p><?php _e( 'Please disable your <strong>AdBlocker</strong> to prevent problems with your ad setup.', 'advanced-ads' ); ?></p></div>
4
  </div>
5
  <script>
6
- jQuery(document).ready(function(){
7
- if( ! jQuery('.advads-ad-block-check img').is(':visible') ){
8
  jQuery('.advads-ad-block-check .message').show();
9
  }
10
- });
11
  </script>
1
  <div class="advads-ad-block-check">
2
+ <script type="text/javascript" src="<?php echo ADVADS_BASE_URL . 'admin/assets/js/advertisement.js' ?>"></script>
3
  <div class="message error" style="display: none;"><p><?php _e( 'Please disable your <strong>AdBlocker</strong> to prevent problems with your ad setup.', 'advanced-ads' ); ?></p></div>
4
  </div>
5
  <script>
6
+ jQuery( document ).ready( function() {
7
+ if ( typeof advanced_ads_adblocker_test === 'undefined' ) {
8
  jQuery('.advads-ad-block-check .message').show();
9
  }
10
+ } );
11
  </script>
advanced-ads.php CHANGED
@@ -6,13 +6,13 @@
6
  * @author Thomas Maier <thomas.maier@webgilde.com>
7
  * @license GPL-2.0+
8
  * @link http://webgilde.com
9
- * @copyright 2013-2015 Thomas Maier, webgilde GmbH
10
  *
11
  * @wordpress-plugin
12
  * Plugin Name: Advanced Ads
13
  * Plugin URI: https://wpadvancedads.com
14
  * Description: Manage and optimize your ads in WordPress
15
- * Version: 1.7.8
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
@@ -39,7 +39,7 @@ define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin
39
  // general and global slug, e.g. to store options in WP, textdomain
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
- define( 'ADVADS_VERSION', '1.7.8' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
6
  * @author Thomas Maier <thomas.maier@webgilde.com>
7
  * @license GPL-2.0+
8
  * @link http://webgilde.com
9
+ * @copyright 2013-2016 Thomas Maier, webgilde GmbH
10
  *
11
  * @wordpress-plugin
12
  * Plugin Name: Advanced Ads
13
  * Plugin URI: https://wpadvancedads.com
14
  * Description: Manage and optimize your ads in WordPress
15
+ * Version: 1.7.9
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
39
  // general and global slug, e.g. to store options in WP, textdomain
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
+ define( 'ADVADS_VERSION', '1.7.9' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/display-conditions.php CHANGED
@@ -208,14 +208,22 @@ class Advanced_Ads_Display_Conditions {
208
  // set defaults
209
  $post_types = get_post_types(array('public' => true, 'publicly_queryable' => true), 'object', 'or');
210
  ?><div class="advads-conditions-single advads-buttonset"><?php
 
 
211
  foreach ($post_types as $_type_id => $_type) {
212
  if ( in_array($_type_id, $values)) {
213
  $_val = 1;
214
  } else {
215
  $_val = 0;
216
  }
 
 
 
 
 
 
217
  ?><label class="button" for="advads-conditions-<?php echo $index; ?>-<?php echo $_type_id;
218
- ?>"><?php echo $_type->label; ?></label><input type="checkbox" id="advads-conditions-<?php echo $index; ?>-<?php echo $_type_id; ?>" name="<?php echo $name; ?>[value][]" <?php checked($_val, 1); ?> value="<?php echo $_type_id; ?>"><?php
219
  }
220
  ?><p class="advads-conditions-not-selected advads-error-message"><?php _ex( 'Please select some items.', 'Error message shown when no display condition term is selected', 'advanced-ads' ); ?></p></div><?php
221
  }
208
  // set defaults
209
  $post_types = get_post_types(array('public' => true, 'publicly_queryable' => true), 'object', 'or');
210
  ?><div class="advads-conditions-single advads-buttonset"><?php
211
+ $type_label_counts = array_count_values( wp_list_pluck( $post_types, 'label' ) );
212
+
213
  foreach ($post_types as $_type_id => $_type) {
214
  if ( in_array($_type_id, $values)) {
215
  $_val = 1;
216
  } else {
217
  $_val = 0;
218
  }
219
+
220
+ if ( $type_label_counts[ $_type->label ] < 2 ) {
221
+ $_label = $_type->label;
222
+ } else {
223
+ $_label = sprintf( '%s (%s)', $_type->label, $_type_id );
224
+ }
225
  ?><label class="button" for="advads-conditions-<?php echo $index; ?>-<?php echo $_type_id;
226
+ ?>"><?php echo $_label ?></label><input type="checkbox" id="advads-conditions-<?php echo $index; ?>-<?php echo $_type_id; ?>" name="<?php echo $name; ?>[value][]" <?php checked($_val, 1); ?> value="<?php echo $_type_id; ?>"><?php
227
  }
228
  ?><p class="advads-conditions-not-selected advads-error-message"><?php _ex( 'Please select some items.', 'Error message shown when no display condition term is selected', 'advanced-ads' ); ?></p></div><?php
229
  }
classes/frontend_checks.php ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Advanced_Ads_Frontend_Checks {
4
+ /**
5
+ * True if 'the_content' was invoked, false otherwise.
6
+ *
7
+ * @var bool
8
+ */
9
+ private $did_the_content = false;
10
+
11
+ public function __construct() {
12
+ add_action( 'init', array( $this, 'init' ) );
13
+ }
14
+
15
+ public function init() {
16
+ if ( ! is_admin()
17
+ && is_admin_bar_showing()
18
+ && current_user_can( Advanced_Ads_Plugin::user_cap( 'advanced_ads_edit_ads' ) )
19
+ ) {
20
+ add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_menu' ), 1000 );
21
+ add_filter( 'the_content', array( $this, 'set_did_the_content' ), 101 );
22
+ add_filter( 'wp_footer', array( $this, 'check_adblocker' ) );
23
+ }
24
+ }
25
+
26
+ /**
27
+ * List current ad situation on the page in the admin-bar.
28
+ *
29
+ * @param obj $wp_admin_bar WP_Admin_Bar
30
+ */
31
+ public function add_admin_bar_menu( $wp_admin_bar ) {
32
+ global $wp_the_query, $post, $wp_scripts;
33
+
34
+ $options = Advanced_Ads_Plugin::get_instance()->options();
35
+ $display_fine = true;
36
+
37
+ $wp_admin_bar->add_node( array(
38
+ 'id' => 'advanced_ads_ad_health',
39
+ 'title' => __( 'Ad Health', 'advanced-ads' ),
40
+ ) );
41
+
42
+ // Hidden, will be shown using js.
43
+ $wp_admin_bar->add_node( array(
44
+ 'parent' => 'advanced_ads_ad_health',
45
+ 'id' => 'advanced_ads_ad_health_jquery',
46
+ 'title' => __( 'jQuery not in header', 'advanced-ads' ),
47
+ 'href' => 'https://wpadvancedads.com/manual/common-issues#frontend-issues-javascript',
48
+ 'meta' => array(
49
+ 'class' => 'hidden',
50
+ 'target' => '_blank'
51
+ )
52
+ ) );
53
+
54
+ // Hidden, will be shown using js.
55
+ $wp_admin_bar->add_node( array(
56
+ 'parent' => 'advanced_ads_ad_health',
57
+ 'id' => 'advanced_ads_ad_health_adblocker_enabled',
58
+ 'title' => __( 'Ad blocker enabled', 'advanced-ads' ),
59
+ // 'href' => 'https://wpadvancedads.com/support',
60
+ 'meta' => array(
61
+ 'class' => 'hidden',
62
+ 'target' => '_blank'
63
+ )
64
+ ) );
65
+
66
+ if ( ! $this->did_the_content ) {
67
+ $wp_admin_bar->add_node( array(
68
+ 'parent' => 'advanced_ads_ad_health',
69
+ 'id' => 'advanced_ads_ad_health_the_content_not_invoked',
70
+ 'title' => sprintf( __( '<em>%s</em> filter does not exist', 'advanced-ads' ), 'the_content' ),
71
+ 'href' => 'https://wpadvancedads.com/manual/ads-not-showing-up/#frontend-issues-the-content-filter',
72
+ 'meta' => array(
73
+ 'target' => '_blank'
74
+ )
75
+ ) );
76
+ $display_fine = false;
77
+ }
78
+
79
+ if ( $wp_the_query->is_singular() ) {
80
+ if ( ! empty( $post->ID ) ) {
81
+ $ad_settings = get_post_meta( $post->ID, '_advads_ad_settings', true );
82
+
83
+ if ( ! empty( $ad_settings['disable_ads'] ) ) {
84
+ $wp_admin_bar->add_node( array(
85
+ 'parent' => 'advanced_ads_ad_health',
86
+ 'id' => 'advanced_ads_ad_health_disabled_on_page',
87
+ 'title' => __( 'Ads are disabled on this page', 'advanced-ads' ),
88
+ 'href' => get_edit_post_link( $post->ID ) . '#advads-ad-settings',
89
+ 'meta' => array(
90
+ 'target' => '_blank'
91
+ )
92
+ ) );
93
+ $display_fine = false;
94
+ }
95
+
96
+ if ( ! empty( $ad_settings['disable_the_content'] ) ) {
97
+ $wp_admin_bar->add_node( array(
98
+ 'parent' => 'advanced_ads_ad_health',
99
+ 'id' => 'advanced_ads_ad_health_disabled_in_content',
100
+ 'title' => __( 'Ads are disabled in the content of this page', 'advanced-ads' ),
101
+ 'href' => get_edit_post_link( $post->ID ) . '#advads-ad-settings',
102
+ 'meta' => array(
103
+ 'target' => '_blank'
104
+ )
105
+ ) );
106
+ $display_fine = false;
107
+ }
108
+ } else {
109
+ $wp_admin_bar->add_node( array(
110
+ 'parent' => 'advanced_ads_ad_health',
111
+ 'id' => 'advanced_ads_ad_health_post_zero',
112
+ 'title' => __( 'the current post ID is 0 ', 'advanced-ads' ),
113
+ 'href' => 'https://wpadvancedads.com/manual/known-plugin-conflicts/#frontend-issue-post-id-empty',
114
+ 'meta' => array(
115
+ 'target' => '_blank'
116
+ )
117
+ ) );
118
+ $display_fine = false;
119
+ }
120
+ }
121
+
122
+ if ( $wp_the_query->is_404() && ! empty( $options['disabled-ads']['404'] ) ) {
123
+ $wp_admin_bar->add_node( array(
124
+ 'parent' => 'advanced_ads_ad_health',
125
+ 'id' => 'advanced_ads_ad_health_no_404',
126
+ 'title' => __( 'Ads are disabled on 404 pages', 'advanced-ads' ),
127
+ 'href' => admin_url( 'admin.php?page=advanced-ads-settings' ),
128
+ 'meta' => array(
129
+ 'target' => '_blank'
130
+ )
131
+ ) );
132
+ $display_fine = false;
133
+ }
134
+
135
+ if ( ! $wp_the_query->is_singular() && ! empty( $options['disabled-ads']['archives'] ) ){
136
+ $wp_admin_bar->add_node( array(
137
+ 'parent' => 'advanced_ads_ad_health',
138
+ 'id' => 'advanced_ads_ad_health_no_archive',
139
+ 'title' => __( 'Ads are disabled on non singular pages', 'advanced-ads' ),
140
+ 'href' => admin_url( 'admin.php?page=advanced-ads-settings' ),
141
+ 'meta' => array(
142
+ 'target' => '_blank'
143
+ )
144
+ ) );
145
+ $display_fine = false;
146
+ }
147
+
148
+ if ( $display_fine ) {
149
+ $wp_admin_bar->add_node( array(
150
+ 'parent' => 'advanced_ads_ad_health',
151
+ 'id' => 'advanced_ads_ad_health_fine',
152
+ 'title' => __( 'Everything is fine', 'advanced-ads' ),
153
+ 'href' => false,
154
+ 'meta' => array(
155
+ 'target' => '_blank',
156
+ )
157
+ ) );
158
+ }
159
+ }
160
+
161
+ /**
162
+ * Set variable to 'true' when 'the_content' filter is invoked.
163
+ * If not invoked, jQuery will not be checked.
164
+ *
165
+ * @param string $content
166
+ * @return string $content
167
+ */
168
+ public function set_did_the_content( $content ) {
169
+ if ( ! $this->did_the_content ) {
170
+ $this->did_the_content = true;
171
+ $content = '<!--noptimize--><script>var advanced_ads_head_jQuery = typeof jQuery !== "undefined";</script><!--/noptimize-->' . $content;
172
+ }
173
+ return $content;
174
+ }
175
+
176
+ /**
177
+ * Check conditions and display warning. Conditions: AdBlocker enabled, jQuery is included in header
178
+ */
179
+ public function check_adblocker() { ?>
180
+ <!--noptimize--><style>.hidden { display: none; } .advads-adminbar-is-warnings { background: #a54811 ! important; color: #fff !important; }</style>
181
+ <script type="text/javascript" src="<?php echo ADVADS_BASE_URL . 'admin/assets/js/advertisement.js' ?>"></script>
182
+ <script>
183
+ (function(d, w) {
184
+ var addEvent = function( obj, type, fn ) {
185
+ if ( obj.addEventListener )
186
+ obj.addEventListener( type, fn, false );
187
+ else if ( obj.attachEvent )
188
+ obj.attachEvent( 'on' + type, function() { return fn.call( obj, window.event ); } );
189
+ };
190
+
191
+ addEvent( w, 'load', function() {
192
+ var adblock_item = d.getElementById( 'wp-admin-bar-advanced_ads_ad_health_adblocker_enabled' ),
193
+ jQuery_item = d.getElementById( 'wp-admin-bar-advanced_ads_ad_health_jquery' ),
194
+ fine_item = d.getElementById( 'wp-admin-bar-advanced_ads_ad_health_fine' ),
195
+ hide_fine = false;
196
+
197
+ if ( adblock_item && typeof advanced_ads_adblocker_test === 'undefined' ) {
198
+ // show hidden item
199
+ adblock_item.className = adblock_item.className.replace( /hidden/, '' );
200
+ hide_fine = true;
201
+ }
202
+
203
+ if ( jQuery_item && typeof advanced_ads_head_jQuery !== 'undefined' && ! advanced_ads_head_jQuery ) {
204
+ // show hidden item
205
+ jQuery_item.className = jQuery_item.className.replace( /hidden/, '' );
206
+ hide_fine = true;
207
+ }
208
+
209
+ if ( hide_fine && fine_item ) {
210
+ fine_item.className += ' hidden';
211
+ }
212
+
213
+ showCount();
214
+ });
215
+
216
+ var showCount = function() {
217
+ try {
218
+ // select not hidden items, exclude the 'fine_item'
219
+ var warning_count = document.querySelectorAll( '#wp-admin-bar-advanced_ads_ad_health ul li:not(.hidden):not(#wp-admin-bar-advanced_ads_ad_health_fine)' ).length;
220
+ } catch ( e ) { return; }
221
+
222
+ if ( warning_count ) {
223
+ var header = document.querySelector( '#wp-admin-bar-advanced_ads_ad_health > div' );
224
+
225
+ if ( header ) {
226
+ header.innerHTML += ' <i>(' + warning_count + ')</i>';
227
+ header.className += ' advads-adminbar-is-warnings';
228
+ }
229
+ }
230
+ };
231
+ })(document, window);
232
+ </script><!--/noptimize-->
233
+ <?php
234
+ }
235
+
236
+ }
classes/plugin.php CHANGED
@@ -58,7 +58,7 @@ class Advanced_Ads_Plugin {
58
  register_deactivation_hook( ADVADS_BASE, array( $this, 'deactivate' ) );
59
  register_uninstall_hook( ADVADS_BASE, array( 'Advanced_Ads_Plugin', 'uninstall' ) );
60
 
61
- add_action( 'plugins_loaded', array( $this, 'wp_plugins_loaded' ) );
62
  }
63
 
64
  /**
@@ -114,6 +114,7 @@ class Advanced_Ads_Plugin {
114
 
115
  // load display conditions
116
  Advanced_Ads_Display_Conditions::get_instance();
 
117
  }
118
 
119
  /**
58
  register_deactivation_hook( ADVADS_BASE, array( $this, 'deactivate' ) );
59
  register_uninstall_hook( ADVADS_BASE, array( 'Advanced_Ads_Plugin', 'uninstall' ) );
60
 
61
+ add_action( 'plugins_loaded', array( $this, 'wp_plugins_loaded' ), 10 );
62
  }
63
 
64
  /**
114
 
115
  // load display conditions
116
  Advanced_Ads_Display_Conditions::get_instance();
117
+ new Advanced_Ads_Frontend_Checks;
118
  }
119
 
120
  /**
composer.lock CHANGED
@@ -4,21 +4,21 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
  "This file is @generated automatically"
6
  ],
7
- "hash": "a5682b6980988f749640ce92382a6247",
8
  "content-hash": "ad3eee4861f3aff012912967c0a17906",
9
  "packages": [
10
  {
11
  "name": "composer/installers",
12
- "version": "v1.0.23",
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/composer/installers.git",
16
- "reference": "6213d900e92647831f7a406d5c530ea1f3d4360e"
17
  },
18
  "dist": {
19
  "type": "zip",
20
- "url": "https://api.github.com/repos/composer/installers/zipball/6213d900e92647831f7a406d5c530ea1f3d4360e",
21
- "reference": "6213d900e92647831f7a406d5c530ea1f3d4360e",
22
  "shasum": ""
23
  },
24
  "require": {
@@ -40,8 +40,8 @@
40
  }
41
  },
42
  "autoload": {
43
- "psr-0": {
44
- "Composer\\Installers\\": "src/"
45
  }
46
  },
47
  "notification-url": "https://packagist.org/downloads/",
@@ -56,28 +56,35 @@
56
  }
57
  ],
58
  "description": "A multi-framework Composer library installer",
59
- "homepage": "http://composer.github.com/installers/",
60
  "keywords": [
61
  "Craft",
62
  "Dolibarr",
63
  "Hurad",
 
64
  "MODX Evo",
 
65
  "OXID",
 
 
66
  "SMF",
67
  "Thelia",
68
  "WolfCMS",
69
  "agl",
70
  "aimeos",
71
  "annotatecms",
 
72
  "bitrix",
73
  "cakephp",
74
  "chef",
 
75
  "codeigniter",
76
  "concrete5",
77
  "croogo",
78
  "dokuwiki",
79
  "drupal",
80
  "elgg",
 
81
  "fuelphp",
82
  "grav",
83
  "installer",
@@ -94,29 +101,31 @@
94
  "piwik",
95
  "ppi",
96
  "puppet",
 
97
  "roundcube",
98
  "shopware",
99
  "silverstripe",
100
  "symfony",
101
  "typo3",
102
  "wordpress",
 
103
  "zend",
104
  "zikula"
105
  ],
106
- "time": "2016-01-27 12:54:22"
107
  },
108
  {
109
  "name": "xrstf/composer-php52",
110
- "version": "v1.0.19",
111
  "source": {
112
- "type": "hg",
113
- "url": "https://bitbucket.org/xrstf/composer-php52",
114
- "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e"
115
  },
116
  "dist": {
117
  "type": "zip",
118
- "url": "https://bitbucket.org/xrstf/composer-php52/get/9a4a9c46d0347b39bf9159815301dc66fc25324e.zip",
119
- "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e",
120
  "shasum": ""
121
  },
122
  "type": "library",
@@ -134,8 +143,7 @@
134
  "license": [
135
  "MIT"
136
  ],
137
- "homepage": "http://www.xrstf.de/",
138
- "time": "2015-10-01 14:11:58"
139
  }
140
  ],
141
  "packages-dev": [],
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
  "This file is @generated automatically"
6
  ],
7
+ "hash": "b52900a2013c2cb8d13b725b76b888c2",
8
  "content-hash": "ad3eee4861f3aff012912967c0a17906",
9
  "packages": [
10
  {
11
  "name": "composer/installers",
12
+ "version": "v1.2.0",
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/composer/installers.git",
16
+ "reference": "d78064c68299743e0161004f2de3a0204e33b804"
17
  },
18
  "dist": {
19
  "type": "zip",
20
+ "url": "https://api.github.com/repos/composer/installers/zipball/d78064c68299743e0161004f2de3a0204e33b804",
21
+ "reference": "d78064c68299743e0161004f2de3a0204e33b804",
22
  "shasum": ""
23
  },
24
  "require": {
40
  }
41
  },
42
  "autoload": {
43
+ "psr-4": {
44
+ "Composer\\Installers\\": "src/Composer/Installers"
45
  }
46
  },
47
  "notification-url": "https://packagist.org/downloads/",
56
  }
57
  ],
58
  "description": "A multi-framework Composer library installer",
59
+ "homepage": "https://composer.github.io/installers/",
60
  "keywords": [
61
  "Craft",
62
  "Dolibarr",
63
  "Hurad",
64
+ "ImageCMS",
65
  "MODX Evo",
66
+ "Mautic",
67
  "OXID",
68
+ "Plentymarkets",
69
+ "RadPHP",
70
  "SMF",
71
  "Thelia",
72
  "WolfCMS",
73
  "agl",
74
  "aimeos",
75
  "annotatecms",
76
+ "attogram",
77
  "bitrix",
78
  "cakephp",
79
  "chef",
80
+ "cockpit",
81
  "codeigniter",
82
  "concrete5",
83
  "croogo",
84
  "dokuwiki",
85
  "drupal",
86
  "elgg",
87
+ "expressionengine",
88
  "fuelphp",
89
  "grav",
90
  "installer",
101
  "piwik",
102
  "ppi",
103
  "puppet",
104
+ "reindex",
105
  "roundcube",
106
  "shopware",
107
  "silverstripe",
108
  "symfony",
109
  "typo3",
110
  "wordpress",
111
+ "yawik",
112
  "zend",
113
  "zikula"
114
  ],
115
+ "time": "2016-08-13 20:53:52"
116
  },
117
  {
118
  "name": "xrstf/composer-php52",
119
+ "version": "v1.0.20",
120
  "source": {
121
+ "type": "git",
122
+ "url": "https://github.com/composer-php52/composer-php52.git",
123
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
124
  },
125
  "dist": {
126
  "type": "zip",
127
+ "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
128
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
129
  "shasum": ""
130
  },
131
  "type": "library",
143
  "license": [
144
  "MIT"
145
  ],
146
+ "time": "2016-04-16 21:52:24"
 
147
  }
148
  ],
149
  "packages-dev": [],
modules/gadsense/includes/class-gadsense-data.php CHANGED
@@ -2,76 +2,68 @@
2
 
3
  class Advanced_Ads_AdSense_Data {
4
 
5
- private static $instance;
 
 
6
 
7
- private $options;
8
 
9
- private $resizing;
10
 
11
- private function __construct() {
 
 
 
 
 
12
 
13
- $options = get_option(GADSENSE_OPT_NAME, array());
14
-
15
- // AdSense publisher id
16
- if ( ! isset($options['adsense-id']) ) {
17
- // check if there is still an old setting
18
- // 'gadsense_options' was renamed
19
- $old_options = get_option( 'gadsense_options', array() );
20
- if ( isset($old_options['adsense_id']) ) {
21
- $options['adsense-id'] = $old_options['adsense_id'];
22
- $options['limit-per-page'] = $old_options['limit_ads_per_page'];
23
-
24
- // remove old options
25
- delete_option('gadsense_options');
26
- } else {
27
- $options['adsense-id'] = '';
28
- $options['limit-per-page'] = true;
29
- }
30
-
31
- update_option(GADSENSE_OPT_NAME, $options);
32
- }
33
-
34
- if ( !isset($options['limit-per-page']) ) {
35
- $options['limit-per-page'] = '';
36
- }
37
-
38
- if ( !isset($options['page-level-enabled']) ) {
39
- $options['page-level-enabled'] = false;
40
- }
41
-
42
- $this->options = $options;
43
-
44
- // Resizing method for responsive ads
45
- $this->resizing = array(
46
- 'auto' => __( 'Auto', 'advanced-ads' ),
47
- );
48
- }
49
-
50
- /**
51
- * GETTERS
52
- */
53
- public function get_options() {
54
- return $this->options;
55
- }
56
- public function get_adsense_id() {
57
- return trim($this->options['adsense-id']);
58
  }
59
 
60
- public function get_limit_per_page() {
61
- return $this->options['limit-per-page'];
 
62
  }
63
 
64
- public function get_responsive_sizing() {
65
- $resizing = $this->resizing;
66
- $this->resizing = apply_filters( 'advanced-ads-gadsense-responsive-sizing', $resizing );
67
- return $this->resizing;
68
  }
69
 
70
- public static function get_instance() {
71
- if ( null == self::$instance ) {
72
- self::$instance = new self;
73
- }
74
- return self::$instance;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  }
 
 
76
 
77
  }
2
 
3
  class Advanced_Ads_AdSense_Data {
4
 
5
+ private static $instance;
6
+ private $options;
7
+ private $resizing;
8
 
9
+ private function __construct() {
10
 
11
+ $options = get_option(GADSENSE_OPT_NAME, array());
12
 
13
+ // set defaults
14
+ if (!isset($options['adsense-id'])) {
15
+
16
+ $options['adsense-id'] = '';
17
+ // starting version 1.7.9, the default limit setting was changed from true to false due to AdSense policy change
18
+ $options['limit-per-page'] = false;
19
 
20
+ update_option(GADSENSE_OPT_NAME, $options);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
+ if (!isset($options['limit-per-page'])) {
24
+ // starting version 1.7.9, the default limit setting was changed from true to false due to AdSense policy change
25
+ $options['limit-per-page'] = false;
26
  }
27
 
28
+ if (!isset($options['page-level-enabled'])) {
29
+ $options['page-level-enabled'] = false;
30
+
 
31
  }
32
 
33
+ $this->options = $options;
34
+
35
+ // Resizing method for responsive ads
36
+ $this->resizing = array(
37
+ 'auto' => __('Auto', 'advanced-ads'),
38
+ );
39
+ }
40
+
41
+ /**
42
+ * GETTERS
43
+ */
44
+ public function get_options() {
45
+ return $this->options;
46
+ }
47
+
48
+ public function get_adsense_id() {
49
+ return trim($this->options['adsense-id']);
50
+ }
51
+
52
+ public function get_limit_per_page() {
53
+ return $this->options['limit-per-page'];
54
+ }
55
+
56
+ public function get_responsive_sizing() {
57
+ $resizing = $this->resizing;
58
+ $this->resizing = apply_filters('advanced-ads-gadsense-responsive-sizing', $resizing);
59
+ return $this->resizing;
60
+ }
61
+
62
+ public static function get_instance() {
63
+ if (null == self::$instance) {
64
+ self::$instance = new self;
65
  }
66
+ return self::$instance;
67
+ }
68
 
69
  }
modules/marketpress-license/admin.php CHANGED
@@ -64,13 +64,14 @@ if ( class_exists( 'Advanced_Ads', false ) ) {
64
  // template in main plugin
65
  include ADVADS_BASE_PATH . 'admin/views/setting-license.php';
66
 
67
- ?>
68
- <tr>
69
- <th></th>
70
- <td style="font-style: italic; margin: 0; padding-top: 0;"><?php echo __( 'Enter your key here, if you have purchased the bundle through MarketPress.', 'advanced-ads' ); ?></td>
71
- </tr>
72
-
73
- <?php
 
74
 
75
  }
76
 
64
  // template in main plugin
65
  include ADVADS_BASE_PATH . 'admin/views/setting-license.php';
66
 
67
+ ?><p class="description"><?php echo __( 'Enter your key here, if you have purchased the bundle through MarketPress.', 'advanced-ads' ); ?></p><?php
68
+ if( $license_key === '' ) :
69
+ ?></td>
70
+ <p class="description"><?php echo __( 'Enter your key here, if you have purchased the bundle through MarketPress.', 'advanced-ads' ); ?></p>
71
+ <td>
72
+ <a class="advads-licenses-marketpress-show" href="javascript:void(0)"><?php echo __( 'Click here if you purchased a Bundle key through <strong>MarketPress</strong>.', 'advanced-ads' ); ?></a>
73
+ <script>jQuery('.advads-licenses-marketpress-show').parents('td').prev('td').hide().prev('th').css('text-indent', '-9999px'); jQuery('.advads-licenses-marketpress-show').click(function(){ jQuery(this).parents('td').hide().prev('td').show().prev('th').css('text-indent', '0').show(); });</script>
74
+ <?php endif;
75
 
76
  }
77
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
4
  Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
5
  Requires at least: WP 4.2, PHP 5.3
6
  Tested up to: 4.6.1
7
- Stable tag: 1.7.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,6 +206,12 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
206
 
207
  == Changelog ==
208
 
 
 
 
 
 
 
209
  = 1.7.8 =
210
 
211
  * prevent any ad container output in the header
4
  Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
5
  Requires at least: WP 4.2, PHP 5.3
6
  Tested up to: 4.6.1
7
+ Stable tag: 1.7.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.7.9 =
210
+
211
+ * added frontend error checks to the admin bar
212
+ * changed default value for AdSense limit from true to false due to AdSense policy change, [read more](https://webgilde.com/en/ad-limit-adsense/)
213
+ * fixed unhighlighted placement type in Chrome
214
+
215
  = 1.7.8 =
216
 
217
  * prevent any ad container output in the header
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInit9fd37b3a8ae6882ef90ba1c057562c7c::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInite6273508b675f05c5fcae8d513372338::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -13,9 +13,7 @@
13
  namespace Composer\Autoload;
14
 
15
  /**
16
- * ClassLoader implements a PSR-0 class loader
17
- *
18
- * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
19
  *
20
  * $loader = new \Composer\Autoload\ClassLoader();
21
  *
@@ -39,6 +37,8 @@ namespace Composer\Autoload;
39
  *
40
  * @author Fabien Potencier <fabien@symfony.com>
41
  * @author Jordi Boggiano <j.boggiano@seld.be>
 
 
42
  */
43
  class ClassLoader
44
  {
@@ -147,7 +147,7 @@ class ClassLoader
147
  * appending or prepending to the ones previously set for this namespace.
148
  *
149
  * @param string $prefix The prefix/namespace, with trailing '\\'
150
- * @param array|string $paths The PSR-0 base directories
151
  * @param bool $prepend Whether to prepend the directories
152
  *
153
  * @throws \InvalidArgumentException
13
  namespace Composer\Autoload;
14
 
15
  /**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
 
 
17
  *
18
  * $loader = new \Composer\Autoload\ClassLoader();
19
  *
37
  *
38
  * @author Fabien Potencier <fabien@symfony.com>
39
  * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see http://www.php-fig.org/psr/psr-0/
41
+ * @see http://www.php-fig.org/psr/psr-4/
42
  */
43
  class ClassLoader
44
  {
147
  * appending or prepending to the ones previously set for this namespace.
148
  *
149
  * @param string $prefix The prefix/namespace, with trailing '\\'
150
+ * @param array|string $paths The PSR-4 base directories
151
  * @param bool $prepend Whether to prepend the directories
152
  *
153
  * @throws \InvalidArgumentException
vendor/composer/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
 
2
- Copyright (c) 2015 Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
1
 
2
+ Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3
 
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
  of this software and associated documentation files (the "Software"), to deal
vendor/composer/autoload_classmap.php CHANGED
@@ -24,6 +24,7 @@ return array(
24
  'Advanced_Ads_Ajax' => $baseDir . '/classes/ad-ajax.php',
25
  'Advanced_Ads_Checks' => $baseDir . '/classes/checks.php',
26
  'Advanced_Ads_Display_Conditions' => $baseDir . '/classes/display-conditions.php',
 
27
  'Advanced_Ads_Group' => $baseDir . '/classes/ad_group.php',
28
  'Advanced_Ads_Groups_List' => $baseDir . '/admin/includes/class-ad-groups-list.php',
29
  'Advanced_Ads_Model' => $baseDir . '/classes/ad-model.php',
@@ -35,5 +36,79 @@ return array(
35
  'Advanced_Ads_Upgrades' => $baseDir . '/classes/upgrades.php',
36
  'Advanced_Ads_Visitor_Conditions' => $baseDir . '/classes/visitor-conditions.php',
37
  'Advanced_Ads_Widget' => $baseDir . '/classes/widget.php',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  'EDD_SL_Plugin_Updater' => $baseDir . '/classes/EDD_SL_Plugin_Updater.php',
 
 
39
  );
24
  'Advanced_Ads_Ajax' => $baseDir . '/classes/ad-ajax.php',
25
  'Advanced_Ads_Checks' => $baseDir . '/classes/checks.php',
26
  'Advanced_Ads_Display_Conditions' => $baseDir . '/classes/display-conditions.php',
27
+ 'Advanced_Ads_Frontend_Checks' => $baseDir . '/classes/frontend_checks.php',
28
  'Advanced_Ads_Group' => $baseDir . '/classes/ad_group.php',
29
  'Advanced_Ads_Groups_List' => $baseDir . '/admin/includes/class-ad-groups-list.php',
30
  'Advanced_Ads_Model' => $baseDir . '/classes/ad-model.php',
36
  'Advanced_Ads_Upgrades' => $baseDir . '/classes/upgrades.php',
37
  'Advanced_Ads_Visitor_Conditions' => $baseDir . '/classes/visitor-conditions.php',
38
  'Advanced_Ads_Widget' => $baseDir . '/classes/widget.php',
39
+ 'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
40
+ 'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
41
+ 'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
42
+ 'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
43
+ 'Composer\\Installers\\AttogramInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AttogramInstaller.php',
44
+ 'Composer\\Installers\\BaseInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
45
+ 'Composer\\Installers\\BitrixInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
46
+ 'Composer\\Installers\\BonefishInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
47
+ 'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
48
+ 'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
49
+ 'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
50
+ 'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
51
+ 'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
52
+ 'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
53
+ 'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
54
+ 'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
55
+ 'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
56
+ 'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
57
+ 'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
58
+ 'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
59
+ 'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
60
+ 'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
61
+ 'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
62
+ 'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
63
+ 'Composer\\Installers\\GravInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/GravInstaller.php',
64
+ 'Composer\\Installers\\HuradInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
65
+ 'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
66
+ 'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
67
+ 'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
68
+ 'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
69
+ 'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
70
+ 'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
71
+ 'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
72
+ 'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
73
+ 'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
74
+ 'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
75
+ 'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
76
+ 'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
77
+ 'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
78
+ 'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
79
+ 'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
80
+ 'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
81
+ 'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
82
+ 'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
83
+ 'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
84
+ 'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
85
+ 'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
86
+ 'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
87
+ 'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
88
+ 'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
89
+ 'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
90
+ 'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
91
+ 'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
92
+ 'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
93
+ 'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
94
+ 'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
95
+ 'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
96
+ 'Composer\\Installers\\SMFInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
97
+ 'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
98
+ 'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
99
+ 'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
100
+ 'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
101
+ 'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
102
+ 'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
103
+ 'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
104
+ 'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
105
+ 'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
106
+ 'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
107
+ 'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
108
+ 'Composer\\Installers\\YawikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
109
+ 'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
110
+ 'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
111
  'EDD_SL_Plugin_Updater' => $baseDir . '/classes/EDD_SL_Plugin_Updater.php',
112
+ 'xrstf\\Composer52\\AutoloadGenerator' => $vendorDir . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
113
+ 'xrstf\\Composer52\\Generator' => $vendorDir . '/xrstf/composer-php52/lib/xrstf/Composer52/Generator.php',
114
  );
vendor/composer/autoload_namespaces.php CHANGED
@@ -7,5 +7,4 @@ $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
  'xrstf\\Composer52' => array($vendorDir . '/xrstf/composer-php52/lib'),
10
- 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src'),
11
  );
7
 
8
  return array(
9
  'xrstf\\Composer52' => array($vendorDir . '/xrstf/composer-php52/lib'),
 
10
  );
vendor/composer/autoload_psr4.php CHANGED
@@ -6,4 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
9
  );
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
+ 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
10
  );
vendor/composer/autoload_real.php CHANGED
@@ -23,19 +23,26 @@ class ComposerAutoloaderInitd24de3c06687d3cf4aad0b15c83747be
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
  spl_autoload_unregister(array('ComposerAutoloaderInitd24de3c06687d3cf4aad0b15c83747be', 'loadClassLoader'));
25
 
26
- $map = require __DIR__ . '/autoload_namespaces.php';
27
- foreach ($map as $namespace => $path) {
28
- $loader->set($namespace, $path);
29
- }
30
-
31
- $map = require __DIR__ . '/autoload_psr4.php';
32
- foreach ($map as $namespace => $path) {
33
- $loader->setPsr4($namespace, $path);
34
- }
35
-
36
- $classMap = require __DIR__ . '/autoload_classmap.php';
37
- if ($classMap) {
38
- $loader->addClassMap($classMap);
 
 
 
 
 
 
 
39
  }
40
 
41
  $loader->register(true);
@@ -43,8 +50,3 @@ class ComposerAutoloaderInitd24de3c06687d3cf4aad0b15c83747be
43
  return $loader;
44
  }
45
  }
46
-
47
- function composerRequired24de3c06687d3cf4aad0b15c83747be($file)
48
- {
49
- require $file;
50
- }
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
  spl_autoload_unregister(array('ComposerAutoloaderInitd24de3c06687d3cf4aad0b15c83747be', 'loadClassLoader'));
25
 
26
+ $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
27
+ if ($useStaticLoader) {
28
+ require_once __DIR__ . '/autoload_static.php';
29
+
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be::getInitializer($loader));
31
+ } else {
32
+ $map = require __DIR__ . '/autoload_namespaces.php';
33
+ foreach ($map as $namespace => $path) {
34
+ $loader->set($namespace, $path);
35
+ }
36
+
37
+ $map = require __DIR__ . '/autoload_psr4.php';
38
+ foreach ($map as $namespace => $path) {
39
+ $loader->setPsr4($namespace, $path);
40
+ }
41
+
42
+ $classMap = require __DIR__ . '/autoload_classmap.php';
43
+ if ($classMap) {
44
+ $loader->addClassMap($classMap);
45
+ }
46
  }
47
 
48
  $loader->register(true);
50
  return $loader;
51
  }
52
  }
 
 
 
 
 
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInit9fd37b3a8ae6882ef90ba1c057562c7c {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit9fd37b3a8ae6882ef90ba1c057562c7c {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit9fd37b3a8ae6882ef90ba1c057562c7c', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit9fd37b3a8ae6882ef90ba1c057562c7c', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInite6273508b675f05c5fcae8d513372338 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite6273508b675f05c5fcae8d513372338', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite6273508b675f05c5fcae8d513372338', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
vendor/composer/autoload_static.php ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_static.php @generated by Composer
4
+
5
+ namespace Composer\Autoload;
6
+
7
+ class ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be
8
+ {
9
+ public static $prefixLengthsPsr4 = array (
10
+ 'C' =>
11
+ array (
12
+ 'Composer\\Installers\\' => 20,
13
+ ),
14
+ );
15
+
16
+ public static $prefixDirsPsr4 = array (
17
+ 'Composer\\Installers\\' =>
18
+ array (
19
+ 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
20
+ ),
21
+ );
22
+
23
+ public static $prefixesPsr0 = array (
24
+ 'x' =>
25
+ array (
26
+ 'xrstf\\Composer52' =>
27
+ array (
28
+ 0 => __DIR__ . '/..' . '/xrstf/composer-php52/lib',
29
+ ),
30
+ ),
31
+ );
32
+
33
+ public static $classMap = array (
34
+ 'Advads_Ad' => __DIR__ . '/../..' . '/classes/ad.php',
35
+ 'Advanced_Ads' => __DIR__ . '/../..' . '/public/class-advanced-ads.php',
36
+ 'Advanced_Ads_Ad' => __DIR__ . '/../..' . '/classes/ad.php',
37
+ 'Advanced_Ads_Ad_Ajax_Callbacks' => __DIR__ . '/../..' . '/classes/ad_ajax_callbacks.php',
38
+ 'Advanced_Ads_Ad_Type_Abstract' => __DIR__ . '/../..' . '/classes/ad_type_abstract.php',
39
+ 'Advanced_Ads_Ad_Type_Content' => __DIR__ . '/../..' . '/classes/ad_type_content.php',
40
+ 'Advanced_Ads_Ad_Type_Group' => __DIR__ . '/../..' . '/classes/ad_type_group.php',
41
+ 'Advanced_Ads_Ad_Type_Image' => __DIR__ . '/../..' . '/classes/ad_type_image.php',
42
+ 'Advanced_Ads_Ad_Type_Plain' => __DIR__ . '/../..' . '/classes/ad_type_plain.php',
43
+ 'Advanced_Ads_Admin' => __DIR__ . '/../..' . '/admin/class-advanced-ads-admin.php',
44
+ 'Advanced_Ads_Admin_Ad_Type' => __DIR__ . '/../..' . '/admin/includes/class-ad-type.php',
45
+ 'Advanced_Ads_Admin_Menu' => __DIR__ . '/../..' . '/admin/includes/class-menu.php',
46
+ 'Advanced_Ads_Admin_Meta_Boxes' => __DIR__ . '/../..' . '/admin/includes/class-meta-box.php',
47
+ 'Advanced_Ads_Admin_Notices' => __DIR__ . '/../..' . '/admin/includes/class-notices.php',
48
+ 'Advanced_Ads_Admin_Settings' => __DIR__ . '/../..' . '/admin/includes/class-settings.php',
49
+ 'Advanced_Ads_Ajax' => __DIR__ . '/../..' . '/classes/ad-ajax.php',
50
+ 'Advanced_Ads_Checks' => __DIR__ . '/../..' . '/classes/checks.php',
51
+ 'Advanced_Ads_Display_Conditions' => __DIR__ . '/../..' . '/classes/display-conditions.php',
52
+ 'Advanced_Ads_Frontend_Checks' => __DIR__ . '/../..' . '/classes/frontend_checks.php',
53
+ 'Advanced_Ads_Group' => __DIR__ . '/../..' . '/classes/ad_group.php',
54
+ 'Advanced_Ads_Groups_List' => __DIR__ . '/../..' . '/admin/includes/class-ad-groups-list.php',
55
+ 'Advanced_Ads_Model' => __DIR__ . '/../..' . '/classes/ad-model.php',
56
+ 'Advanced_Ads_Overview_Widgets_Callbacks' => __DIR__ . '/../..' . '/admin/includes/class-overview-widgets.php',
57
+ 'Advanced_Ads_Placements' => __DIR__ . '/../..' . '/classes/ad_placements.php',
58
+ 'Advanced_Ads_Plugin' => __DIR__ . '/../..' . '/classes/plugin.php',
59
+ 'Advanced_Ads_Select' => __DIR__ . '/../..' . '/classes/ad-select.php',
60
+ 'Advanced_Ads_Shortcode_Creator' => __DIR__ . '/../..' . '/admin/includes/class-shortcode-creator.php',
61
+ 'Advanced_Ads_Upgrades' => __DIR__ . '/../..' . '/classes/upgrades.php',
62
+ 'Advanced_Ads_Visitor_Conditions' => __DIR__ . '/../..' . '/classes/visitor-conditions.php',
63
+ 'Advanced_Ads_Widget' => __DIR__ . '/../..' . '/classes/widget.php',
64
+ 'Composer\\Installers\\AglInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AglInstaller.php',
65
+ 'Composer\\Installers\\AimeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
66
+ 'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
67
+ 'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
68
+ 'Composer\\Installers\\AttogramInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AttogramInstaller.php',
69
+ 'Composer\\Installers\\BaseInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
70
+ 'Composer\\Installers\\BitrixInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
71
+ 'Composer\\Installers\\BonefishInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
72
+ 'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
73
+ 'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
74
+ 'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
75
+ 'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
76
+ 'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
77
+ 'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
78
+ 'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
79
+ 'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
80
+ 'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
81
+ 'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
82
+ 'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
83
+ 'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
84
+ 'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
85
+ 'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
86
+ 'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
87
+ 'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
88
+ 'Composer\\Installers\\GravInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/GravInstaller.php',
89
+ 'Composer\\Installers\\HuradInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
90
+ 'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
91
+ 'Composer\\Installers\\Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Installer.php',
92
+ 'Composer\\Installers\\JoomlaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
93
+ 'Composer\\Installers\\KirbyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
94
+ 'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
95
+ 'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
96
+ 'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
97
+ 'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
98
+ 'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
99
+ 'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
100
+ 'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
101
+ 'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
102
+ 'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
103
+ 'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
104
+ 'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
105
+ 'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
106
+ 'Composer\\Installers\\OctoberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
107
+ 'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
108
+ 'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
109
+ 'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
110
+ 'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
111
+ 'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
112
+ 'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
113
+ 'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
114
+ 'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php',
115
+ 'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
116
+ 'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
117
+ 'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
118
+ 'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
119
+ 'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
120
+ 'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
121
+ 'Composer\\Installers\\SMFInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
122
+ 'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
123
+ 'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
124
+ 'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
125
+ 'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
126
+ 'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
127
+ 'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
128
+ 'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
129
+ 'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
130
+ 'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
131
+ 'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
132
+ 'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
133
+ 'Composer\\Installers\\YawikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
134
+ 'Composer\\Installers\\ZendInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
135
+ 'Composer\\Installers\\ZikulaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
136
+ 'EDD_SL_Plugin_Updater' => __DIR__ . '/../..' . '/classes/EDD_SL_Plugin_Updater.php',
137
+ 'xrstf\\Composer52\\AutoloadGenerator' => __DIR__ . '/..' . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
138
+ 'xrstf\\Composer52\\Generator' => __DIR__ . '/..' . '/xrstf/composer-php52/lib/xrstf/Composer52/Generator.php',
139
+ );
140
+
141
+ public static function getInitializer(ClassLoader $loader)
142
+ {
143
+ return \Closure::bind(function () use ($loader) {
144
+ $loader->prefixLengthsPsr4 = ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be::$prefixLengthsPsr4;
145
+ $loader->prefixDirsPsr4 = ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be::$prefixDirsPsr4;
146
+ $loader->prefixesPsr0 = ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be::$prefixesPsr0;
147
+ $loader->classMap = ComposerStaticInitd24de3c06687d3cf4aad0b15c83747be::$classMap;
148
+
149
+ }, null, ClassLoader::class);
150
+ }
151
+ }
vendor/composer/installed.json CHANGED
@@ -1,51 +1,17 @@
1
  [
2
- {
3
- "name": "xrstf/composer-php52",
4
- "version": "v1.0.19",
5
- "version_normalized": "1.0.19.0",
6
- "source": {
7
- "type": "hg",
8
- "url": "https://bitbucket.org/xrstf/composer-php52",
9
- "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e"
10
- },
11
- "dist": {
12
- "type": "zip",
13
- "url": "https://bitbucket.org/xrstf/composer-php52/get/9a4a9c46d0347b39bf9159815301dc66fc25324e.zip",
14
- "reference": "9a4a9c46d0347b39bf9159815301dc66fc25324e",
15
- "shasum": ""
16
- },
17
- "time": "2015-10-01 14:11:58",
18
- "type": "library",
19
- "extra": {
20
- "branch-alias": {
21
- "dev-default": "1.x-dev"
22
- }
23
- },
24
- "installation-source": "dist",
25
- "autoload": {
26
- "psr-0": {
27
- "xrstf\\Composer52": "lib/"
28
- }
29
- },
30
- "notification-url": "https://packagist.org/downloads/",
31
- "license": [
32
- "MIT"
33
- ],
34
- "homepage": "http://www.xrstf.de/"
35
- },
36
  {
37
  "name": "composer/installers",
38
- "version": "v1.0.23",
39
- "version_normalized": "1.0.23.0",
40
  "source": {
41
  "type": "git",
42
  "url": "https://github.com/composer/installers.git",
43
- "reference": "6213d900e92647831f7a406d5c530ea1f3d4360e"
44
  },
45
  "dist": {
46
  "type": "zip",
47
- "url": "https://api.github.com/repos/composer/installers/zipball/6213d900e92647831f7a406d5c530ea1f3d4360e",
48
- "reference": "6213d900e92647831f7a406d5c530ea1f3d4360e",
49
  "shasum": ""
50
  },
51
  "require": {
@@ -59,7 +25,7 @@
59
  "composer/composer": "1.0.*@dev",
60
  "phpunit/phpunit": "4.1.*"
61
  },
62
- "time": "2016-01-27 12:54:22",
63
  "type": "composer-plugin",
64
  "extra": {
65
  "class": "Composer\\Installers\\Plugin",
@@ -69,8 +35,8 @@
69
  },
70
  "installation-source": "dist",
71
  "autoload": {
72
- "psr-0": {
73
- "Composer\\Installers\\": "src/"
74
  }
75
  },
76
  "notification-url": "https://packagist.org/downloads/",
@@ -85,28 +51,35 @@
85
  }
86
  ],
87
  "description": "A multi-framework Composer library installer",
88
- "homepage": "http://composer.github.com/installers/",
89
  "keywords": [
90
  "Craft",
91
  "Dolibarr",
92
  "Hurad",
 
93
  "MODX Evo",
 
94
  "OXID",
 
 
95
  "SMF",
96
  "Thelia",
97
  "WolfCMS",
98
  "agl",
99
  "aimeos",
100
  "annotatecms",
 
101
  "bitrix",
102
  "cakephp",
103
  "chef",
 
104
  "codeigniter",
105
  "concrete5",
106
  "croogo",
107
  "dokuwiki",
108
  "drupal",
109
  "elgg",
 
110
  "fuelphp",
111
  "grav",
112
  "installer",
@@ -123,14 +96,49 @@
123
  "piwik",
124
  "ppi",
125
  "puppet",
 
126
  "roundcube",
127
  "shopware",
128
  "silverstripe",
129
  "symfony",
130
  "typo3",
131
  "wordpress",
 
132
  "zend",
133
  "zikula"
134
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
  ]
1
  [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {
3
  "name": "composer/installers",
4
+ "version": "v1.2.0",
5
+ "version_normalized": "1.2.0.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/composer/installers.git",
9
+ "reference": "d78064c68299743e0161004f2de3a0204e33b804"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/composer/installers/zipball/d78064c68299743e0161004f2de3a0204e33b804",
14
+ "reference": "d78064c68299743e0161004f2de3a0204e33b804",
15
  "shasum": ""
16
  },
17
  "require": {
25
  "composer/composer": "1.0.*@dev",
26
  "phpunit/phpunit": "4.1.*"
27
  },
28
+ "time": "2016-08-13 20:53:52",
29
  "type": "composer-plugin",
30
  "extra": {
31
  "class": "Composer\\Installers\\Plugin",
35
  },
36
  "installation-source": "dist",
37
  "autoload": {
38
+ "psr-4": {
39
+ "Composer\\Installers\\": "src/Composer/Installers"
40
  }
41
  },
42
  "notification-url": "https://packagist.org/downloads/",
51
  }
52
  ],
53
  "description": "A multi-framework Composer library installer",
54
+ "homepage": "https://composer.github.io/installers/",
55
  "keywords": [
56
  "Craft",
57
  "Dolibarr",
58
  "Hurad",
59
+ "ImageCMS",
60
  "MODX Evo",
61
+ "Mautic",
62
  "OXID",
63
+ "Plentymarkets",
64
+ "RadPHP",
65
  "SMF",
66
  "Thelia",
67
  "WolfCMS",
68
  "agl",
69
  "aimeos",
70
  "annotatecms",
71
+ "attogram",
72
  "bitrix",
73
  "cakephp",
74
  "chef",
75
+ "cockpit",
76
  "codeigniter",
77
  "concrete5",
78
  "croogo",
79
  "dokuwiki",
80
  "drupal",
81
  "elgg",
82
+ "expressionengine",
83
  "fuelphp",
84
  "grav",
85
  "installer",
96
  "piwik",
97
  "ppi",
98
  "puppet",
99
+ "reindex",
100
  "roundcube",
101
  "shopware",
102
  "silverstripe",
103
  "symfony",
104
  "typo3",
105
  "wordpress",
106
+ "yawik",
107
  "zend",
108
  "zikula"
109
  ]
110
+ },
111
+ {
112
+ "name": "xrstf/composer-php52",
113
+ "version": "v1.0.20",
114
+ "version_normalized": "1.0.20.0",
115
+ "source": {
116
+ "type": "git",
117
+ "url": "https://github.com/composer-php52/composer-php52.git",
118
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
119
+ },
120
+ "dist": {
121
+ "type": "zip",
122
+ "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
123
+ "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
124
+ "shasum": ""
125
+ },
126
+ "time": "2016-04-16 21:52:24",
127
+ "type": "library",
128
+ "extra": {
129
+ "branch-alias": {
130
+ "dev-default": "1.x-dev"
131
+ }
132
+ },
133
+ "installation-source": "dist",
134
+ "autoload": {
135
+ "psr-0": {
136
+ "xrstf\\Composer52": "lib/"
137
+ }
138
+ },
139
+ "notification-url": "https://packagist.org/downloads/",
140
+ "license": [
141
+ "MIT"
142
+ ]
143
  }
144
  ]
vendor/composer/installers/README.md CHANGED
@@ -35,33 +35,39 @@ is not needed to install packages with these frameworks:
35
  | --------- | -----
36
  | Aimeos | `aimeos-extension`
37
  | Asgard | `asgard-module`<br>`asgard-theme`
 
38
  | AGL | `agl-module`
39
  | Bonefish | `bonefish-package`
40
  | AnnotateCms | `annotatecms-module`<br>`annotatecms-component`<br>`annotatecms-service`
41
- | Bitrix | `bitrix-module`<br>`bitrix-component`<br>`bitrix-theme`
42
  | CakePHP 2+ | **`cakephp-plugin`**
43
  | Chef | `chef-cookbook`<br>`chef-role`
44
  | CCFramework | `ccframework-ship`<br>`ccframework-theme`
 
45
  | CodeIgniter | `codeigniter-library`<br>`codeigniter-third-party`<br>`codeigniter-module`
46
  | concrete5 | `concrete5-block`<br>`concrete5-package`<br>`concrete5-theme`<br>`concrete5-update`
47
  | Craft | `craft-plugin`
48
  | Croogo | `croogo-plugin`<br>`croogo-theme`
 
49
  | DokuWiki | `dokuwiki-plugin`<br>`dokuwiki-template`
50
  | Dolibarr | `dolibarr-module`
51
- | Drupal | <b>`drupal-module`<br>`drupal-theme`</b><br>`drupal-library`<br>`drupal-profile`<br>`drupal-drush`
52
  | Elgg | `elgg-plugin`
 
53
  | FuelPHP v1.x | `fuel-module`<br>`fuel-package`<br/>`fuel-theme`
54
  | FuelPHP v2.x | `fuelphp-component`
55
  | Grav | `grav-plugin`<br>`grav-theme`
56
  | Hurad | `hurad-plugin`<br>`hurad-theme`
 
57
  | Joomla | `joomla-component`<br>`joomla-module`<br>`joomla-template`<br>`joomla-plugin`<br>`joomla-library`
58
- | Kirby | **`kirby-plugin`**
59
  | KodiCMS | `kodicms-plugin`<br>`kodicms-media`
60
  | Kohana | **`kohana-module`**
61
  | Laravel | `laravel-library`
62
  | Lithium | **`lithium-library`<br>`lithium-source`**
63
  | Magento | `magento-library`<br>`magento-skin`<br>`magento-theme`
64
  | Mako | `mako-package`
 
65
  | MODX Evo | `modxevo-snippet`<br>`modxevo-plugin`<br>`modxevo-module`<br>`modxevo-template`<br>`modxevo-lib`
66
  | MediaWiki | `mediawiki-extension`
67
  | October | **`october-module`<br>`october-plugin`<br>`october-theme`**
@@ -71,22 +77,28 @@ is not needed to install packages with these frameworks:
71
  | Piwik | `piwik-plugin`
72
  | phpBB | `phpbb-extension`<br>`phpbb-style`<br>`phpbb-language`
73
  | Pimcore | `pimcore-plugin`
 
74
  | PPI | **`ppi-module`**
75
  | Puppet | `puppet-module`
 
76
  | REDAXO | `redaxo-addon`
 
77
  | Roundcube | `roundcube-plugin`
78
- | shopware | `shopware-backend-plugin`<br/>`shopware-core-plugin`<br/>`shopware-frontend-plugin`<br/>`shopware-theme`
79
  | SilverStripe | `silverstripe-module`<br>`silverstripe-theme`
80
  | SMF | `smf-module`<br>`smf-theme`
81
  | symfony1 | **`symfony1-plugin`**
82
  | Tusk | `tusk-task`<br>`tusk-command`<br>`tusk-asset`
83
  | TYPO3 Flow | `typo3-flow-package`<br>`typo3-flow-framework`<br>`typo3-flow-plugin`<br>`typo3-flow-site`<br>`typo3-flow-boilerplate`<br>`typo3-flow-build`
84
- | TYPO3 CMS | `typo3-cms-extension`
 
85
  | Wolf CMS | `wolfcms-plugin`
86
  | WordPress | <b>`wordpress-plugin`<br>`wordpress-theme`</b><br>`wordpress-muplugin`
 
87
  | Zend | `zend-library`<br>`zend-extra`<br>`zend-module`
88
  | Zikula | `zikula-module`<br>`zikula-theme`
89
  | Prestashop | `prestashop-module`<br>`prestashop-theme`
 
90
 
91
  ## Example `composer.json` File
92
 
@@ -137,7 +149,20 @@ A package type can have a custom installation path with a `type:` prefix.
137
  }
138
  ```
139
 
140
- This would use your custom path for each of the listed packages. The available
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  variables to use in your paths are: `{$name}`, `{$vendor}`, `{$type}`.
142
 
143
  ## Custom Install Names
@@ -168,7 +193,7 @@ not be inflected.
168
  ## Contribute!
169
 
170
  * [Fork and clone](https://help.github.com/articles/fork-a-repo).
171
- * Run the command `php composer.phar install` to install the dependencies.
172
  This will also install the dev dependencies. See [Composer](https://getcomposer.org/doc/03-cli.md#install).
173
  * Use the command `phpunit` to run the tests. See [PHPUnit](http://phpunit.de).
174
  * Create a branch, commit, push and send us a
@@ -191,3 +216,5 @@ It has been proposed many times. Even implemented once early on and then
191
  removed. `installers` won't do this because it would allow a single package
192
  author to wipe out entire folders without the user's consent. That user would
193
  then come here to yell at us.
 
 
35
  | --------- | -----
36
  | Aimeos | `aimeos-extension`
37
  | Asgard | `asgard-module`<br>`asgard-theme`
38
+ | Attogram | `attogram-module`
39
  | AGL | `agl-module`
40
  | Bonefish | `bonefish-package`
41
  | AnnotateCms | `annotatecms-module`<br>`annotatecms-component`<br>`annotatecms-service`
42
+ | Bitrix | `bitrix-module` (deprecated) <br>`bitrix-component` (deprecated) <br>`bitrix-theme` (deprecated) <br><br> `bitrix-d7-module` <br> `bitrix-d7-component` <br> `bitrix-d7-template`
43
  | CakePHP 2+ | **`cakephp-plugin`**
44
  | Chef | `chef-cookbook`<br>`chef-role`
45
  | CCFramework | `ccframework-ship`<br>`ccframework-theme`
46
+ | Cockpit | `cockpit-module`
47
  | CodeIgniter | `codeigniter-library`<br>`codeigniter-third-party`<br>`codeigniter-module`
48
  | concrete5 | `concrete5-block`<br>`concrete5-package`<br>`concrete5-theme`<br>`concrete5-update`
49
  | Craft | `craft-plugin`
50
  | Croogo | `croogo-plugin`<br>`croogo-theme`
51
+ | Decibel | `decibel-app`
52
  | DokuWiki | `dokuwiki-plugin`<br>`dokuwiki-template`
53
  | Dolibarr | `dolibarr-module`
54
+ | Drupal | <b>`drupal-core`<br>`drupal-module`<br>`drupal-theme`</b><br>`drupal-library`<br>`drupal-profile`<br>`drupal-drush`
55
  | Elgg | `elgg-plugin`
56
+ | ExpressionEngine 3 | `ee3-addon`<br>`ee3-theme`
57
  | FuelPHP v1.x | `fuel-module`<br>`fuel-package`<br/>`fuel-theme`
58
  | FuelPHP v2.x | `fuelphp-component`
59
  | Grav | `grav-plugin`<br>`grav-theme`
60
  | Hurad | `hurad-plugin`<br>`hurad-theme`
61
+ | ImageCMS | `imagecms-template`<br>`imagecms-module`<br>`imagecms-library`
62
  | Joomla | `joomla-component`<br>`joomla-module`<br>`joomla-template`<br>`joomla-plugin`<br>`joomla-library`
63
+ | Kirby | **`kirby-plugin`**<br>`kirby-field`<br>`kirby-tag`
64
  | KodiCMS | `kodicms-plugin`<br>`kodicms-media`
65
  | Kohana | **`kohana-module`**
66
  | Laravel | `laravel-library`
67
  | Lithium | **`lithium-library`<br>`lithium-source`**
68
  | Magento | `magento-library`<br>`magento-skin`<br>`magento-theme`
69
  | Mako | `mako-package`
70
+ | Mautic | `mautic-plugin`<br>`mautic-theme`
71
  | MODX Evo | `modxevo-snippet`<br>`modxevo-plugin`<br>`modxevo-module`<br>`modxevo-template`<br>`modxevo-lib`
72
  | MediaWiki | `mediawiki-extension`
73
  | October | **`october-module`<br>`october-plugin`<br>`october-theme`**
77
  | Piwik | `piwik-plugin`
78
  | phpBB | `phpbb-extension`<br>`phpbb-style`<br>`phpbb-language`
79
  | Pimcore | `pimcore-plugin`
80
+ | Plentymarkets | `plentymarkets-plugin`
81
  | PPI | **`ppi-module`**
82
  | Puppet | `puppet-module`
83
+ | RadPHP | `radphp-bundle`
84
  | REDAXO | `redaxo-addon`
85
+ | ReIndex | **`reindex-plugin`** <br> **`reindex-theme`**
86
  | Roundcube | `roundcube-plugin`
87
+ | shopware | `shopware-backend-plugin`<br/>`shopware-core-plugin`<br/>`shopware-frontend-plugin`<br/>`shopware-theme`<br/>`shopware-plugin`<br/>`shopware-frontend-theme`
88
  | SilverStripe | `silverstripe-module`<br>`silverstripe-theme`
89
  | SMF | `smf-module`<br>`smf-theme`
90
  | symfony1 | **`symfony1-plugin`**
91
  | Tusk | `tusk-task`<br>`tusk-command`<br>`tusk-asset`
92
  | TYPO3 Flow | `typo3-flow-package`<br>`typo3-flow-framework`<br>`typo3-flow-plugin`<br>`typo3-flow-site`<br>`typo3-flow-boilerplate`<br>`typo3-flow-build`
93
+ | TYPO3 CMS | `typo3-cms-extension` (Deprecated in this package, use the [TYPO3 CMS Installers](https://packagist.org/packages/typo3/cms-composer-installers) instead)
94
+ | Vanilla | `vanilla-plugin`<br>`vanilla-theme`
95
  | Wolf CMS | `wolfcms-plugin`
96
  | WordPress | <b>`wordpress-plugin`<br>`wordpress-theme`</b><br>`wordpress-muplugin`
97
+ | YAWIK | `yawik-module`
98
  | Zend | `zend-library`<br>`zend-extra`<br>`zend-module`
99
  | Zikula | `zikula-module`<br>`zikula-theme`
100
  | Prestashop | `prestashop-module`<br>`prestashop-theme`
101
+ | Phifty | `phifty-bundle`<br>`phifty-framework`<br>`phifty-library`
102
 
103
  ## Example `composer.json` File
104
 
149
  }
150
  ```
151
 
152
+ You can also have the same vendor packages with a custom installation path by
153
+ using the `vendor:` prefix.
154
+
155
+ ``` json
156
+ {
157
+ "extra": {
158
+ "installer-paths": {
159
+ "your/custom/path/{$name}/": ["vendor:my_organization"]
160
+ }
161
+ }
162
+ }
163
+ ```
164
+
165
+ These would use your custom path for each of the listed packages. The available
166
  variables to use in your paths are: `{$name}`, `{$vendor}`, `{$type}`.
167
 
168
  ## Custom Install Names
193
  ## Contribute!
194
 
195
  * [Fork and clone](https://help.github.com/articles/fork-a-repo).
196
+ * Run the command `php composer.phar install` to install the dependencies.
197
  This will also install the dev dependencies. See [Composer](https://getcomposer.org/doc/03-cli.md#install).
198
  * Use the command `phpunit` to run the tests. See [PHPUnit](http://phpunit.de).
199
  * Create a branch, commit, push and send us a
216
  removed. `installers` won't do this because it would allow a single package
217
  author to wipe out entire folders without the user's consent. That user would
218
  then come here to yell at us.
219
+
220
+ Anyone still wanting this capability should consider requiring https://github.com/oomphinc/composer-installers-extender.
vendor/composer/installers/composer.json CHANGED
@@ -8,9 +8,11 @@
8
  "Aimeos",
9
  "AGL",
10
  "AnnotateCms",
 
11
  "Bitrix",
12
  "CakePHP",
13
  "Chef",
 
14
  "CodeIgniter",
15
  "concrete5",
16
  "Craft",
@@ -19,15 +21,18 @@
19
  "Dolibarr",
20
  "Drupal",
21
  "Elgg",
 
22
  "FuelPHP",
23
  "Grav",
24
  "Hurad",
 
25
  "Joomla",
26
  "Kohana",
27
  "Laravel",
28
  "Lithium",
29
  "Magento",
30
  "Mako",
 
31
  "MODX Evo",
32
  "MediaWiki",
33
  "OXID",
@@ -35,8 +40,11 @@
35
  "Moodle",
36
  "Piwik",
37
  "phpBB",
 
38
  "PPI",
39
  "Puppet",
 
 
40
  "Roundcube",
41
  "shopware",
42
  "SilverStripe",
@@ -46,10 +54,11 @@
46
  "TYPO3",
47
  "WolfCMS",
48
  "WordPress",
 
49
  "Zend",
50
  "Zikula"
51
  ],
52
- "homepage": "http://composer.github.com/installers/",
53
  "authors": [
54
  {
55
  "name": "Kyle Robinson Young",
@@ -58,7 +67,7 @@
58
  }
59
  ],
60
  "autoload": {
61
- "psr-0": { "Composer\\Installers\\": "src/" }
62
  },
63
  "extra": {
64
  "class": "Composer\\Installers\\Plugin",
@@ -76,5 +85,8 @@
76
  "require-dev": {
77
  "composer/composer": "1.0.*@dev",
78
  "phpunit/phpunit": "4.1.*"
 
 
 
79
  }
80
  }
8
  "Aimeos",
9
  "AGL",
10
  "AnnotateCms",
11
+ "Attogram",
12
  "Bitrix",
13
  "CakePHP",
14
  "Chef",
15
+ "Cockpit",
16
  "CodeIgniter",
17
  "concrete5",
18
  "Craft",
21
  "Dolibarr",
22
  "Drupal",
23
  "Elgg",
24
+ "ExpressionEngine",
25
  "FuelPHP",
26
  "Grav",
27
  "Hurad",
28
+ "ImageCMS",
29
  "Joomla",
30
  "Kohana",
31
  "Laravel",
32
  "Lithium",
33
  "Magento",
34
  "Mako",
35
+ "Mautic",
36
  "MODX Evo",
37
  "MediaWiki",
38
  "OXID",
40
  "Moodle",
41
  "Piwik",
42
  "phpBB",
43
+ "Plentymarkets",
44
  "PPI",
45
  "Puppet",
46
+ "RadPHP",
47
+ "ReIndex",
48
  "Roundcube",
49
  "shopware",
50
  "SilverStripe",
54
  "TYPO3",
55
  "WolfCMS",
56
  "WordPress",
57
+ "YAWIK",
58
  "Zend",
59
  "Zikula"
60
  ],
61
+ "homepage": "https://composer.github.io/installers/",
62
  "authors": [
63
  {
64
  "name": "Kyle Robinson Young",
67
  }
68
  ],
69
  "autoload": {
70
+ "psr-4": { "Composer\\Installers\\": "src/Composer/Installers" }
71
  },
72
  "extra": {
73
  "class": "Composer\\Installers\\Plugin",
85
  "require-dev": {
86
  "composer/composer": "1.0.*@dev",
87
  "phpunit/phpunit": "4.1.*"
88
+ },
89
+ "scripts": {
90
+ "test": "phpunit"
91
  }
92
  }
vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php CHANGED
@@ -31,14 +31,18 @@ class AsgardInstaller extends BaseInstaller
31
 
32
  protected function inflectPluginVars($vars)
33
  {
34
- $vars['name'] = ucfirst(preg_replace('/-module/', '', $vars['name']));
 
 
35
 
36
  return $vars;
37
  }
38
 
39
  protected function inflectThemeVars($vars)
40
  {
41
- $vars['name'] = ucfirst(preg_replace('/-theme$/', '', $vars['name']));
 
 
42
 
43
  return $vars;
44
  }
31
 
32
  protected function inflectPluginVars($vars)
33
  {
34
+ $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
35
+ $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
36
+ $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
37
 
38
  return $vars;
39
  }
40
 
41
  protected function inflectThemeVars($vars)
42
  {
43
+ $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
44
+ $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
45
+ $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
46
 
47
  return $vars;
48
  }
vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class AttogramInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'module' => 'modules/{$name}/',
8
+ );
9
+ }
vendor/composer/installers/src/Composer/Installers/BaseInstaller.php CHANGED
@@ -55,7 +55,7 @@ abstract class BaseInstaller
55
  if ($this->composer->getPackage()) {
56
  $extra = $this->composer->getPackage()->getExtra();
57
  if (!empty($extra['installer-paths'])) {
58
- $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type);
59
  if ($customPath !== false) {
60
  return $this->templatePath($customPath, $availableVars);
61
  }
@@ -120,12 +120,13 @@ abstract class BaseInstaller
120
  * @param array $paths
121
  * @param string $name
122
  * @param string $type
 
123
  * @return string
124
  */
125
- protected function mapCustomInstallPaths(array $paths, $name, $type)
126
  {
127
  foreach ($paths as $path => $names) {
128
- if (in_array($name, $names) || in_array('type:' . $type, $names)) {
129
  return $path;
130
  }
131
  }
55
  if ($this->composer->getPackage()) {
56
  $extra = $this->composer->getPackage()->getExtra();
57
  if (!empty($extra['installer-paths'])) {
58
+ $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
59
  if ($customPath !== false) {
60
  return $this->templatePath($customPath, $availableVars);
61
  }
120
  * @param array $paths
121
  * @param string $name
122
  * @param string $type
123
+ * @param string $vendor = NULL
124
  * @return string
125
  */
126
+ protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)
127
  {
128
  foreach ($paths as $path => $names) {
129
+ if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) {
130
  return $path;
131
  }
132
  }
vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php CHANGED
@@ -1,10 +1,24 @@
1
  <?php
 
2
  namespace Composer\Installers;
3
 
4
  use Composer\Util\Filesystem;
5
 
6
  /**
7
- * Installer for Bitrix Framework
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  *
9
  * @author Nik Samokhvalov <nik@samokhvalov.info>
10
  * @author Denis Kulichkin <onexhovia@gmail.com>
@@ -12,16 +26,39 @@ use Composer\Util\Filesystem;
12
  class BitrixInstaller extends BaseInstaller
13
  {
14
  protected $locations = array(
15
- 'module' => 'bitrix/modules/{$name}/',
16
- 'component' => 'bitrix/components/{$name}/',
17
- 'theme' => 'bitrix/templates/{$name}/',
 
 
 
18
  );
19
 
20
  /**
21
- * @var array Storage for informations about duplicates at all the time of installation packages
22
  */
23
  private static $checkedDuplicates = array();
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  /**
26
  * {@inheritdoc}
27
  */
@@ -34,39 +71,39 @@ class BitrixInstaller extends BaseInstaller
34
  }
35
 
36
  /**
37
- * Duplicates search packages
38
  *
39
- * @param string $templatePath
40
  * @param array $vars
41
  */
42
- protected function checkDuplicates($templatePath, array $vars = array())
43
  {
44
- /**
45
- * Incorrect paths for backward compatibility
46
- */
47
- $oldLocations = array(
48
- 'module' => 'local/modules/{$name}/',
49
- 'component' => 'local/components/{$name}/',
50
- 'theme' => 'local/templates/{$name}/'
51
- );
52
-
53
  $packageType = substr($vars['type'], strlen('bitrix') + 1);
54
- $oldLocation = str_replace('{$name}', $vars['name'], $oldLocations[$packageType]);
 
 
 
 
 
 
 
 
 
55
 
56
- if (in_array($oldLocation, static::$checkedDuplicates)) {
57
  return;
58
  }
59
 
60
- if ($oldLocation !== $templatePath && file_exists($oldLocation) && $this->io && $this->io->isInteractive()) {
61
 
62
  $this->io->writeError(' <error>Duplication of packages:</error>');
63
- $this->io->writeError(' <info>Package ' . $oldLocation . ' will be called instead package ' . $templatePath . '</info>');
64
 
65
  while (true) {
66
- switch ($this->io->ask(' <info>Delete ' . $oldLocation . ' [y,n,?]?</info> ', '?')) {
67
  case 'y':
68
  $fs = new Filesystem();
69
- $fs->removeDirectory($oldLocation);
70
  break 2;
71
 
72
  case 'n':
@@ -75,7 +112,7 @@ class BitrixInstaller extends BaseInstaller
75
  case '?':
76
  default:
77
  $this->io->writeError(array(
78
- ' y - delete package ' . $oldLocation . ' and to continue with the installation',
79
  ' n - don\'t delete and to continue with the installation',
80
  ));
81
  $this->io->writeError(' ? - print help');
@@ -84,6 +121,6 @@ class BitrixInstaller extends BaseInstaller
84
  }
85
  }
86
 
87
- static::$checkedDuplicates[] = $oldLocation;
88
  }
89
  }
1
  <?php
2
+
3
  namespace Composer\Installers;
4
 
5
  use Composer\Util\Filesystem;
6
 
7
  /**
8
+ * Installer for Bitrix Framework. Supported types of extensions:
9
+ * - `bitrix-d7-module` — copy the module to directory `bitrix/modules/<vendor>.<name>`.
10
+ * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`.
11
+ * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`.
12
+ *
13
+ * You can set custom path to directory with Bitrix kernel in `composer.json`:
14
+ *
15
+ * ```json
16
+ * {
17
+ * "extra": {
18
+ * "bitrix-dir": "s1/bitrix"
19
+ * }
20
+ * }
21
+ * ```
22
  *
23
  * @author Nik Samokhvalov <nik@samokhvalov.info>
24
  * @author Denis Kulichkin <onexhovia@gmail.com>
26
  class BitrixInstaller extends BaseInstaller
27
  {
28
  protected $locations = array(
29
+ 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
30
+ 'component' => '{$bitrix_dir}/components/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
31
+ 'theme' => '{$bitrix_dir}/templates/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
32
+ 'd7-module' => '{$bitrix_dir}/modules/{$vendor}.{$name}/',
33
+ 'd7-component' => '{$bitrix_dir}/components/{$vendor}/{$name}/',
34
+ 'd7-template' => '{$bitrix_dir}/templates/{$vendor}_{$name}/',
35
  );
36
 
37
  /**
38
+ * @var array Storage for informations about duplicates at all the time of installation packages.
39
  */
40
  private static $checkedDuplicates = array();
41
 
42
+ /**
43
+ * {@inheritdoc}
44
+ */
45
+ public function inflectPackageVars($vars)
46
+ {
47
+ if ($this->composer->getPackage()) {
48
+ $extra = $this->composer->getPackage()->getExtra();
49
+
50
+ if (isset($extra['bitrix-dir'])) {
51
+ $vars['bitrix_dir'] = $extra['bitrix-dir'];
52
+ }
53
+ }
54
+
55
+ if (!isset($vars['bitrix_dir'])) {
56
+ $vars['bitrix_dir'] = 'bitrix';
57
+ }
58
+
59
+ return parent::inflectPackageVars($vars);
60
+ }
61
+
62
  /**
63
  * {@inheritdoc}
64
  */
71
  }
72
 
73
  /**
74
+ * Duplicates search packages.
75
  *
76
+ * @param string $path
77
  * @param array $vars
78
  */
79
+ protected function checkDuplicates($path, array $vars = array())
80
  {
 
 
 
 
 
 
 
 
 
81
  $packageType = substr($vars['type'], strlen('bitrix') + 1);
82
+ $localDir = explode('/', $vars['bitrix_dir']);
83
+ array_pop($localDir);
84
+ $localDir[] = 'local';
85
+ $localDir = implode('/', $localDir);
86
+
87
+ $oldPath = str_replace(
88
+ array('{$bitrix_dir}', '{$name}'),
89
+ array($localDir, $vars['name']),
90
+ $this->locations[$packageType]
91
+ );
92
 
93
+ if (in_array($oldPath, static::$checkedDuplicates)) {
94
  return;
95
  }
96
 
97
+ if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) {
98
 
99
  $this->io->writeError(' <error>Duplication of packages:</error>');
100
+ $this->io->writeError(' <info>Package ' . $oldPath . ' will be called instead package ' . $path . '</info>');
101
 
102
  while (true) {
103
+ switch ($this->io->ask(' <info>Delete ' . $oldPath . ' [y,n,?]?</info> ', '?')) {
104
  case 'y':
105
  $fs = new Filesystem();
106
+ $fs->removeDirectory($oldPath);
107
  break 2;
108
 
109
  case 'n':
112
  case '?':
113
  default:
114
  $this->io->writeError(array(
115
+ ' y - delete package ' . $oldPath . ' and to continue with the installation',
116
  ' n - don\'t delete and to continue with the installation',
117
  ));
118
  $this->io->writeError(' ? - print help');
121
  }
122
  }
123
 
124
+ static::$checkedDuplicates[] = $oldPath;
125
  }
126
  }
vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class CockpitInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'module' => 'cockpit/modules/addons/{$name}/',
8
+ );
9
+
10
+ /**
11
+ * Format module name.
12
+ *
13
+ * Strip `module-` prefix from package name.
14
+ *
15
+ * @param array @vars
16
+ *
17
+ * @return array
18
+ */
19
+ public function inflectPackageVars($vars)
20
+ {
21
+ if ($vars['type'] == 'cockpit-module') {
22
+ return $this->inflectModuleVars($vars);
23
+ }
24
+
25
+ return $vars;
26
+ }
27
+
28
+ public function inflectModuleVars($vars)
29
+ {
30
+ $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name']));
31
+
32
+ return $vars;
33
+ }
34
+ }
vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class DecibelInstaller extends BaseInstaller
5
+ {
6
+ /** @var array */
7
+ protected $locations = array(
8
+ 'app' => 'app/{$name}/',
9
+ );
10
+ }
vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php CHANGED
@@ -10,5 +10,7 @@ class DrupalInstaller extends BaseInstaller
10
  'library' => 'libraries/{$name}/',
11
  'profile' => 'profiles/{$name}/',
12
  'drush' => 'drush/{$name}/',
 
 
13
  );
14
  }
10
  'library' => 'libraries/{$name}/',
11
  'profile' => 'profiles/{$name}/',
12
  'drush' => 'drush/{$name}/',
13
+ 'custom-theme' => 'themes/custom/{$name}/',
14
+ 'custom-module' => 'modules/custom/{$name}',
15
  );
16
  }
vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ use Composer\Package\PackageInterface;
5
+
6
+ class ExpressionEngineInstaller extends BaseInstaller
7
+ {
8
+
9
+ protected $locations = array();
10
+
11
+ private $ee2Locations = array(
12
+ 'addon' => 'system/expressionengine/third_party/{$name}/',
13
+ 'theme' => 'themes/third_party/{$name}/',
14
+ );
15
+
16
+ private $ee3Locations = array(
17
+ 'addon' => 'system/user/addons/{$name}/',
18
+ 'theme' => 'themes/user/{$name}/',
19
+ );
20
+
21
+ public function getInstallPath(PackageInterface $package, $frameworkType = '')
22
+ {
23
+
24
+ $version = "{$frameworkType}Locations";
25
+ $this->locations = $this->$version;
26
+
27
+ return parent::getInstallPath($package, $frameworkType);
28
+ }
29
+ }
vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class ImageCMSInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'template' => 'templates/{$name}/',
8
+ 'module' => 'application/modules/{$name}/',
9
+ 'library' => 'application/libraries/{$name}/',
10
+ );
11
+ }
vendor/composer/installers/src/Composer/Installers/Installer.php CHANGED
@@ -16,6 +16,7 @@ class Installer extends LibraryInstaller
16
  private $supportedTypes = array(
17
  'aimeos' => 'AimeosInstaller',
18
  'asgard' => 'AsgardInstaller',
 
19
  'agl' => 'AglInstaller',
20
  'annotatecms' => 'AnnotateCmsInstaller',
21
  'bitrix' => 'BitrixInstaller',
@@ -23,18 +24,23 @@ class Installer extends LibraryInstaller
23
  'cakephp' => 'CakePHPInstaller',
24
  'chef' => 'ChefInstaller',
25
  'ccframework' => 'ClanCatsFrameworkInstaller',
 
26
  'codeigniter' => 'CodeIgniterInstaller',
27
  'concrete5' => 'Concrete5Installer',
28
  'craft' => 'CraftInstaller',
29
  'croogo' => 'CroogoInstaller',
30
  'dokuwiki' => 'DokuWikiInstaller',
31
  'dolibarr' => 'DolibarrInstaller',
 
32
  'drupal' => 'DrupalInstaller',
33
  'elgg' => 'ElggInstaller',
 
 
34
  'fuel' => 'FuelInstaller',
35
  'fuelphp' => 'FuelphpInstaller',
36
  'grav' => 'GravInstaller',
37
  'hurad' => 'HuradInstaller',
 
38
  'joomla' => 'JoomlaInstaller',
39
  'kirby' => 'KirbyInstaller',
40
  'kodicms' => 'KodiCMSInstaller',
@@ -43,8 +49,9 @@ class Installer extends LibraryInstaller
43
  'lithium' => 'LithiumInstaller',
44
  'magento' => 'MagentoInstaller',
45
  'mako' => 'MakoInstaller',
 
46
  'mediawiki' => 'MediaWikiInstaller',
47
- 'microweber' => 'MicroweberInstaller',
48
  'modulework' => 'MODULEWorkInstaller',
49
  'modxevo' => 'MODXEvoInstaller',
50
  'moodle' => 'MoodleInstaller',
@@ -53,9 +60,13 @@ class Installer extends LibraryInstaller
53
  'phpbb' => 'PhpBBInstaller',
54
  'pimcore' => 'PimcoreInstaller',
55
  'piwik' => 'PiwikInstaller',
 
56
  'ppi' => 'PPIInstaller',
57
  'puppet' => 'PuppetInstaller',
 
 
58
  'redaxo' => 'RedaxoInstaller',
 
59
  'roundcube' => 'RoundcubeInstaller',
60
  'shopware' => 'ShopwareInstaller',
61
  'silverstripe' => 'SilverStripeInstaller',
@@ -65,9 +76,11 @@ class Installer extends LibraryInstaller
65
  'tusk' => 'TuskInstaller',
66
  'typo3-cms' => 'TYPO3CmsInstaller',
67
  'typo3-flow' => 'TYPO3FlowInstaller',
 
68
  'whmcs' => 'WHMCSInstaller',
69
  'wolfcms' => 'WolfCMSInstaller',
70
  'wordpress' => 'WordPressInstaller',
 
71
  'zend' => 'ZendInstaller',
72
  'zikula' => 'ZikulaInstaller',
73
  'prestashop' => 'PrestashopInstaller'
16
  private $supportedTypes = array(
17
  'aimeos' => 'AimeosInstaller',
18
  'asgard' => 'AsgardInstaller',
19
+ 'attogram' => 'AttogramInstaller',
20
  'agl' => 'AglInstaller',
21
  'annotatecms' => 'AnnotateCmsInstaller',
22
  'bitrix' => 'BitrixInstaller',
24
  'cakephp' => 'CakePHPInstaller',
25
  'chef' => 'ChefInstaller',
26
  'ccframework' => 'ClanCatsFrameworkInstaller',
27
+ 'cockpit' => 'CockpitInstaller',
28
  'codeigniter' => 'CodeIgniterInstaller',
29
  'concrete5' => 'Concrete5Installer',
30
  'craft' => 'CraftInstaller',
31
  'croogo' => 'CroogoInstaller',
32
  'dokuwiki' => 'DokuWikiInstaller',
33
  'dolibarr' => 'DolibarrInstaller',
34
+ 'decibel' => 'DecibelInstaller',
35
  'drupal' => 'DrupalInstaller',
36
  'elgg' => 'ElggInstaller',
37
+ 'ee3' => 'ExpressionEngineInstaller',
38
+ 'ee2' => 'ExpressionEngineInstaller',
39
  'fuel' => 'FuelInstaller',
40
  'fuelphp' => 'FuelphpInstaller',
41
  'grav' => 'GravInstaller',
42
  'hurad' => 'HuradInstaller',
43
+ 'imagecms' => 'ImageCMSInstaller',
44
  'joomla' => 'JoomlaInstaller',
45
  'kirby' => 'KirbyInstaller',
46
  'kodicms' => 'KodiCMSInstaller',
49
  'lithium' => 'LithiumInstaller',
50
  'magento' => 'MagentoInstaller',
51
  'mako' => 'MakoInstaller',
52
+ 'mautic' => 'MauticInstaller',
53
  'mediawiki' => 'MediaWikiInstaller',
54
+ 'microweber' => 'MicroweberInstaller',
55
  'modulework' => 'MODULEWorkInstaller',
56
  'modxevo' => 'MODXEvoInstaller',
57
  'moodle' => 'MoodleInstaller',
60
  'phpbb' => 'PhpBBInstaller',
61
  'pimcore' => 'PimcoreInstaller',
62
  'piwik' => 'PiwikInstaller',
63
+ 'plentymarkets'=> 'PlentymarketsInstaller',
64
  'ppi' => 'PPIInstaller',
65
  'puppet' => 'PuppetInstaller',
66
+ 'radphp' => 'RadPHPInstaller',
67
+ 'phifty' => 'PhiftyInstaller',
68
  'redaxo' => 'RedaxoInstaller',
69
+ 'reindex' => 'ReIndexInstaller',
70
  'roundcube' => 'RoundcubeInstaller',
71
  'shopware' => 'ShopwareInstaller',
72
  'silverstripe' => 'SilverStripeInstaller',
76
  'tusk' => 'TuskInstaller',
77
  'typo3-cms' => 'TYPO3CmsInstaller',
78
  'typo3-flow' => 'TYPO3FlowInstaller',
79
+ 'vanilla' => 'VanillaInstaller',
80
  'whmcs' => 'WHMCSInstaller',
81
  'wolfcms' => 'WolfCMSInstaller',
82
  'wordpress' => 'WordPressInstaller',
83
+ 'yawik' => 'YawikInstaller',
84
  'zend' => 'ZendInstaller',
85
  'zikula' => 'ZikulaInstaller',
86
  'prestashop' => 'PrestashopInstaller'
vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php CHANGED
@@ -5,5 +5,7 @@ class KirbyInstaller extends BaseInstaller
5
  {
6
  protected $locations = array(
7
  'plugin' => 'site/plugins/{$name}/',
 
 
8
  );
9
  }
5
  {
6
  protected $locations = array(
7
  'plugin' => 'site/plugins/{$name}/',
8
+ 'field' => 'site/fields/{$name}/',
9
+ 'tag' => 'site/tags/{$name}/'
10
  );
11
  }
vendor/composer/installers/src/Composer/Installers/MauticInstaller.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class MauticInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'plugin' => 'plugins/{$name}/',
8
+ 'theme' => 'themes/{$name}/',
9
+ );
10
+
11
+ /**
12
+ * Format package name of mautic-plugins to CamelCase
13
+ */
14
+ public function inflectPackageVars($vars)
15
+ {
16
+ if ($vars['type'] == 'mautic-plugin') {
17
+ $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
18
+ return strtoupper($matches[0][1]);
19
+ }, ucfirst($vars['name']));
20
+ }
21
+
22
+ return $vars;
23
+ }
24
+
25
+ }
vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class PhiftyInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'bundle' => 'bundles/{$name}/',
8
+ 'library' => 'libraries/{$name}/',
9
+ 'framework' => 'frameworks/{$name}/',
10
+ );
11
+ }
vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class PlentymarketsInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'plugin' => '{$name}/'
8
+ );
9
+
10
+ /**
11
+ * Remove hyphen, "plugin" and format to camelcase
12
+ * @param array $vars
13
+ *
14
+ * @return array
15
+ */
16
+ public function inflectPackageVars($vars)
17
+ {
18
+ $vars['name'] = explode("-", $vars['name']);
19
+ foreach ($vars['name'] as $key => $name) {
20
+ $vars['name'][$key] = ucfirst($vars['name'][$key]);
21
+ if (strcasecmp($name, "Plugin") == 0) {
22
+ unset($vars['name'][$key]);
23
+ }
24
+ }
25
+ $vars['name'] = implode("",$vars['name']);
26
+
27
+ return $vars;
28
+ }
29
+ }
vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class RadPHPInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'bundle' => 'src/{$name}/'
8
+ );
9
+
10
+ /**
11
+ * Format package name to CamelCase
12
+ */
13
+ public function inflectPackageVars($vars)
14
+ {
15
+ $nameParts = explode('/', $vars['name']);
16
+ foreach ($nameParts as &$value) {
17
+ $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
18
+ $value = str_replace(array('-', '_'), ' ', $value);
19
+ $value = str_replace(' ', '', ucwords($value));
20
+ }
21
+ $vars['name'] = implode('/', $nameParts);
22
+ return $vars;
23
+ }
24
+ }
vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class ReIndexInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'theme' => 'themes/{$name}/',
8
+ 'plugin' => 'plugins/{$name}/'
9
+ );
10
+ }
vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php CHANGED
@@ -11,7 +11,9 @@ class ShopwareInstaller extends BaseInstaller
11
  'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
12
  'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/',
13
  'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/',
14
- 'theme' => 'templates/{$name}/'
 
 
15
  );
16
 
17
  /**
11
  'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
12
  'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/',
13
  'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/',
14
+ 'theme' => 'templates/{$name}/',
15
+ 'plugin' => 'custom/plugins/{$name}/',
16
+ 'frontend-theme' => 'themes/Frontend/{$name}/',
17
  );
18
 
19
  /**
vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php CHANGED
@@ -4,6 +4,8 @@ namespace Composer\Installers;
4
  /**
5
  * Extension installer for TYPO3 CMS
6
  *
 
 
7
  * @author Sascha Egerer <sascha.egerer@dkd.de>
8
  */
9
  class TYPO3CmsInstaller extends BaseInstaller
4
  /**
5
  * Extension installer for TYPO3 CMS
6
  *
7
+ * @deprecated since 1.0.25, use https://packagist.org/packages/typo3/cms-composer-installers instead
8
+ *
9
  * @author Sascha Egerer <sascha.egerer@dkd.de>
10
  */
11
  class TYPO3CmsInstaller extends BaseInstaller
vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers;
3
+
4
+ class VanillaInstaller extends BaseInstaller
5
+ {
6
+ protected $locations = array(
7
+ 'plugin' => 'plugins/{$name}/',
8
+ 'theme' => 'themes/{$name}/',
9
+ );
10
+ }
vendor/composer/installers/src/Composer/Installers/YawikInstaller.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: cbleek
5
+ * Date: 25.03.16
6
+ * Time: 20:55
7
+ */
8
+
9
+ namespace Composer\Installers;
10
+
11
+
12
+ class YawikInstaller extends BaseInstaller
13
+ {
14
+ protected $locations = array(
15
+ 'module' => 'module/{$name}/',
16
+ );
17
+
18
+ /**
19
+ * Format package name to CamelCase
20
+ * @param array $vars
21
+ *
22
+ * @return array
23
+ */
24
+ public function inflectPackageVars($vars)
25
+ {
26
+ $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
27
+ $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
28
+ $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
29
+
30
+ return $vars;
31
+ }
32
+ }
vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php CHANGED
@@ -8,7 +8,7 @@ use Composer\Composer;
8
  class AsgardInstallerTest extends \PHPUnit_Framework_TestCase
9
  {
10
  /**
11
- * @var OctoberInstaller
12
  */
13
  private $installer;
14
 
@@ -26,14 +26,20 @@ class AsgardInstallerTest extends \PHPUnit_Framework_TestCase
26
  public function testInflectPackageVars($type, $name, $expected)
27
  {
28
  $this->assertEquals(
29
- $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type)),
30
- array('name' => $expected, 'type' => $type)
31
  );
32
  }
33
 
34
  public function packageNameInflectionProvider()
35
  {
36
  return array(
 
 
 
 
 
 
37
  array(
38
  'asgard-module',
39
  'asgard-module',
@@ -44,11 +50,17 @@ class AsgardInstallerTest extends \PHPUnit_Framework_TestCase
44
  'blog',
45
  'Blog'
46
  ),
 
 
 
 
 
 
47
  // tests that exactly one '-theme' is cut off
48
  array(
49
  'asgard-theme',
50
  'some-theme-theme',
51
- 'Some-theme',
52
  ),
53
  // tests that names without '-theme' suffix stay valid
54
  array(
@@ -56,6 +68,12 @@ class AsgardInstallerTest extends \PHPUnit_Framework_TestCase
56
  'someothertheme',
57
  'Someothertheme',
58
  ),
 
 
 
 
 
 
59
  );
60
  }
61
  }
8
  class AsgardInstallerTest extends \PHPUnit_Framework_TestCase
9
  {
10
  /**
11
+ * @var AsgardInstaller
12
  */
13
  private $installer;
14
 
26
  public function testInflectPackageVars($type, $name, $expected)
27
  {
28
  $this->assertEquals(
29
+ array('name' => $expected, 'type' => $type),
30
+ $this->installer->inflectPackageVars(array('name' => $name, 'type' => $type))
31
  );
32
  }
33
 
34
  public function packageNameInflectionProvider()
35
  {
36
  return array(
37
+ // Should keep module name StudlyCase
38
+ array(
39
+ 'asgard-module',
40
+ 'user-profile',
41
+ 'UserProfile'
42
+ ),
43
  array(
44
  'asgard-module',
45
  'asgard-module',
50
  'blog',
51
  'Blog'
52
  ),
53
+ // tests that exactly one '-module' is cut off
54
+ array(
55
+ 'asgard-module',
56
+ 'some-module-module',
57
+ 'SomeModule',
58
+ ),
59
  // tests that exactly one '-theme' is cut off
60
  array(
61
  'asgard-theme',
62
  'some-theme-theme',
63
+ 'SomeTheme',
64
  ),
65
  // tests that names without '-theme' suffix stay valid
66
  array(
68
  'someothertheme',
69
  'Someothertheme',
70
  ),
71
+ // Should keep theme name StudlyCase
72
+ array(
73
+ 'asgard-theme',
74
+ 'adminlte-advanced',
75
+ 'AdminlteAdvanced'
76
+ ),
77
  );
78
  }
79
  }
vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Composer\Installers\Test;
4
+
5
+ use Composer\Installers\BitrixInstaller;
6
+ use Composer\Package\PackageInterface;
7
+ use Composer\Package\Package;
8
+ use Composer\Composer;
9
+
10
+ /**
11
+ * Tests for the BitrixInstaller Class
12
+ *
13
+ * @coversDefaultClass Composer\Installers\BitrixInstaller
14
+ */
15
+ class BitrixInstallerTest extends TestCase
16
+ {
17
+ /** @var BitrixInstaller */
18
+ private $installer;
19
+
20
+ /** @var Composer */
21
+ private $composer;
22
+
23
+
24
+ /**
25
+ * Sets up the fixture, for example, instantiate the class-under-test.
26
+ *
27
+ * This method is called before a test is executed.
28
+ */
29
+ final function setUp()
30
+ {
31
+ $this->composer = new Composer();
32
+ }
33
+
34
+ /**
35
+ * @param string $vars
36
+ * @param string $expectedVars
37
+ *
38
+ * @covers ::inflectPackageVars
39
+ *
40
+ * @dataProvider provideExpectedInflectionResults
41
+ */
42
+ final public function testInflectPackageVars($vars, $expectedVars)
43
+ {
44
+
45
+ $this->installer = new BitrixInstaller(
46
+ new Package($vars['name'], '4.2', '4.2'),
47
+ $this->composer
48
+ );
49
+ $actual = $this->installer->inflectPackageVars($vars);
50
+ $this->assertEquals($actual, $expectedVars);
51
+ }
52
+
53
+ /**
54
+ * Provides various parameters for packages and the expected result after inflection
55
+ *
56
+ * @return array
57
+ */
58
+ final public function provideExpectedInflectionResults()
59
+ {
60
+ return array(
61
+ //check bitrix-dir is correct
62
+ array(
63
+ array('name' => 'Nyan/Cat'),
64
+ array('name' => 'Nyan/Cat', 'bitrix_dir' => 'bitrix')
65
+ ),
66
+ array(
67
+ array('name' => 'Nyan/Cat', 'bitrix_dir' => 'bitrix'),
68
+ array('name' => 'Nyan/Cat', 'bitrix_dir' => 'bitrix')
69
+ ),
70
+ array(
71
+ array('name' => 'Nyan/Cat', 'bitrix_dir' => 'local'),
72
+ array('name' => 'Nyan/Cat', 'bitrix_dir' => 'local')
73
+ ),
74
+ );
75
+ }
76
+ }
vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php CHANGED
@@ -89,6 +89,7 @@ class InstallerTest extends TestCase
89
  array('annotatecms-module', true),
90
  array('annotatecms-component', true),
91
  array('annotatecms-service', true),
 
92
  array('bitrix-module', true),
93
  array('bitrix-component', true),
94
  array('bitrix-theme', true),
@@ -99,6 +100,7 @@ class InstallerTest extends TestCase
99
  array('cakephp-plugin', true),
100
  array('chef-cookbook', true),
101
  array('chef-role', true),
 
102
  array('codeigniter-app', false),
103
  array('codeigniter-library', true),
104
  array('codeigniter-third-party', true),
@@ -110,10 +112,15 @@ class InstallerTest extends TestCase
110
  array('craft-plugin', true),
111
  array('croogo-plugin', true),
112
  array('croogo-theme', true),
 
113
  array('dokuwiki-plugin', true),
114
  array('dokuwiki-template', true),
115
  array('drupal-module', true),
116
  array('dolibarr-module', true),
 
 
 
 
117
  array('elgg-plugin', true),
118
  array('fuel-module', true),
119
  array('fuel-package', true),
@@ -121,6 +128,9 @@ class InstallerTest extends TestCase
121
  array('fuelphp-component', true),
122
  array('hurad-plugin', true),
123
  array('hurad-theme', true),
 
 
 
124
  array('joomla-library', true),
125
  array('kirby-plugin', true),
126
  array('kohana-module', true),
@@ -143,17 +153,23 @@ class InstallerTest extends TestCase
143
  array('piwik-plugin', true),
144
  array('phpbb-extension', true),
145
  array('pimcore-plugin', true),
 
146
  array('ppi-module', true),
147
  array('prestashop-module', true),
148
  array('prestashop-theme', true),
149
  array('puppet-module', true),
 
150
  array('redaxo-addon', true),
151
  array('redaxo-bestyle-plugin', true),
 
 
152
  array('roundcube-plugin', true),
153
  array('shopware-backend-plugin', true),
154
  array('shopware-core-plugin', true),
155
  array('shopware-frontend-plugin', true),
156
  array('shopware-theme', true),
 
 
157
  array('silverstripe-module', true),
158
  array('silverstripe-theme', true),
159
  array('smf-module', true),
@@ -167,15 +183,21 @@ class InstallerTest extends TestCase
167
  array('tusk-asset', true),
168
  array('typo3-flow-plugin', true),
169
  array('typo3-cms-extension', true),
 
 
170
  array('whmcs-gateway', true),
171
  array('wolfcms-plugin', true),
172
  array('wordpress-plugin', true),
173
  array('wordpress-core', false),
 
174
  array('zend-library', true),
175
  array('zikula-module', true),
176
  array('zikula-theme', true),
177
  array('kodicms-plugin', true),
178
  array('kodicms-media', true),
 
 
 
179
  );
180
  }
181
 
@@ -205,13 +227,18 @@ class InstallerTest extends TestCase
205
  array('annotatecms-module', 'addons/modules/my_module/', 'vysinsky/my_module'),
206
  array('annotatecms-component', 'addons/components/my_component/', 'vysinsky/my_component'),
207
  array('annotatecms-service', 'addons/services/my_service/', 'vysinsky/my_service'),
 
208
  array('bitrix-module', 'bitrix/modules/my_module/', 'author/my_module'),
209
  array('bitrix-component', 'bitrix/components/my_component/', 'author/my_component'),
210
  array('bitrix-theme', 'bitrix/templates/my_theme/', 'author/my_theme'),
 
 
 
211
  array('bonefish-package', 'Packages/bonefish/package/', 'bonefish/package'),
212
  array('cakephp-plugin', 'Plugin/Ftp/', 'shama/ftp'),
213
  array('chef-cookbook', 'Chef/mre/my_cookbook/', 'mre/my_cookbook'),
214
  array('chef-role', 'Chef/roles/my_role/', 'mre/my_role'),
 
215
  array('codeigniter-library', 'application/libraries/my_package/', 'shama/my_package'),
216
  array('codeigniter-module', 'application/modules/my_package/', 'shama/my_package'),
217
  array('concrete5-block', 'blocks/concrete5_block/', 'remo/concrete5_block'),
@@ -221,6 +248,7 @@ class InstallerTest extends TestCase
221
  array('craft-plugin', 'craft/plugins/my_plugin/', 'mdcpepper/my_plugin'),
222
  array('croogo-plugin', 'Plugin/Sitemaps/', 'fahad19/sitemaps'),
223
  array('croogo-theme', 'View/Themed/Readable/', 'rchavik/readable'),
 
224
  array('dokuwiki-plugin', 'lib/plugins/someplugin/', 'author/someplugin'),
225
  array('dokuwiki-template', 'lib/tpl/sometemplate/', 'author/sometemplate'),
226
  array('dolibarr-module', 'htdocs/custom/my_module/', 'shama/my_module'),
@@ -229,12 +257,19 @@ class InstallerTest extends TestCase
229
  array('drupal-profile', 'profiles/my_module/', 'shama/my_module'),
230
  array('drupal-drush', 'drush/my_module/', 'shama/my_module'),
231
  array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'),
 
 
 
 
232
  array('fuel-module', 'fuel/app/modules/module/', 'fuel/module'),
233
  array('fuel-package', 'fuel/packages/orm/', 'fuel/orm'),
234
  array('fuel-theme', 'fuel/app/themes/theme/', 'fuel/theme'),
235
  array('fuelphp-component', 'components/demo/', 'fuelphp/demo'),
236
  array('hurad-plugin', 'plugins/Akismet/', 'atkrad/akismet'),
237
  array('hurad-theme', 'plugins/Hurad2013/', 'atkrad/Hurad2013'),
 
 
 
238
  array('joomla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
239
  array('kirby-plugin', 'site/plugins/my_plugin/', 'shama/my_plugin'),
240
  array('kohana-module', 'modules/my_package/', 'shama/my_package'),
@@ -266,16 +301,22 @@ class InstallerTest extends TestCase
266
  array('phpbb-style', 'styles/foo/', 'test/foo'),
267
  array('phpbb-language', 'language/foo/', 'test/foo'),
268
  array('pimcore-plugin', 'plugins/MyPlugin/', 'ubikz/my_plugin'),
 
269
  array('ppi-module', 'modules/foo/', 'test/foo'),
270
  array('puppet-module', 'modules/puppet-name/', 'puppet/puppet-name'),
 
271
  array('redaxo-addon', 'redaxo/include/addons/my_plugin/', 'shama/my_plugin'),
272
  array('redaxo-bestyle-plugin', 'redaxo/include/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
 
 
273
  array('roundcube-plugin', 'plugins/base/', 'test/base'),
274
  array('roundcube-plugin', 'plugins/replace_dash/', 'test/replace-dash'),
275
  array('shopware-backend-plugin', 'engine/Shopware/Plugins/Local/Backend/ShamaMyBackendPlugin/', 'shama/my-backend-plugin'),
276
  array('shopware-core-plugin', 'engine/Shopware/Plugins/Local/Core/ShamaMyCorePlugin/', 'shama/my-core-plugin'),
277
  array('shopware-frontend-plugin', 'engine/Shopware/Plugins/Local/Frontend/ShamaMyFrontendPlugin/', 'shama/my-frontend-plugin'),
278
  array('shopware-theme', 'templates/my_theme/', 'shama/my-theme'),
 
 
279
  array('silverstripe-module', 'my_module/', 'shama/my_module'),
280
  array('silverstripe-module', 'sapphire/', 'silverstripe/framework', '2.4.0'),
281
  array('silverstripe-module', 'framework/', 'silverstripe/framework', '3.0.0'),
@@ -294,6 +335,8 @@ class InstallerTest extends TestCase
294
  array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'),
295
  array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'),
296
  array('typo3-cms-extension', 'typo3conf/ext/my_extension/', 'shama/my_extension'),
 
 
297
  array('whmcs-gateway', 'modules/gateways/gateway_name/', 'vendor/gateway_name'),
298
  array('wolfcms-plugin', 'wolf/plugins/my_plugin/', 'shama/my_plugin'),
299
  array('wordpress-plugin', 'wp-content/plugins/my_plugin/', 'shama/my_plugin'),
@@ -303,6 +346,10 @@ class InstallerTest extends TestCase
303
  array('zikula-theme', 'themes/my-test_theme/', 'my/test_theme'),
304
  array('kodicms-media', 'cms/media/vendor/my_media/', 'shama/my_media'),
305
  array('kodicms-plugin', 'cms/plugins/my_plugin/', 'shama/my_plugin'),
 
 
 
 
306
  );
307
  }
308
 
@@ -380,6 +427,27 @@ class InstallerTest extends TestCase
380
  $this->assertEquals('my/custom/path/my_plugin/', $result);
381
  }
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  /**
384
  * testNoVendorName
385
  */
89
  array('annotatecms-module', true),
90
  array('annotatecms-component', true),
91
  array('annotatecms-service', true),
92
+ array('attogram-module', true),
93
  array('bitrix-module', true),
94
  array('bitrix-component', true),
95
  array('bitrix-theme', true),
100
  array('cakephp-plugin', true),
101
  array('chef-cookbook', true),
102
  array('chef-role', true),
103
+ array('cockpit-module', true),
104
  array('codeigniter-app', false),
105
  array('codeigniter-library', true),
106
  array('codeigniter-third-party', true),
112
  array('craft-plugin', true),
113
  array('croogo-plugin', true),
114
  array('croogo-theme', true),
115
+ array('decibel-app', true),
116
  array('dokuwiki-plugin', true),
117
  array('dokuwiki-template', true),
118
  array('drupal-module', true),
119
  array('dolibarr-module', true),
120
+ array('ee3-theme', true),
121
+ array('ee3-addon', true),
122
+ array('ee2-theme', true),
123
+ array('ee2-addon', true),
124
  array('elgg-plugin', true),
125
  array('fuel-module', true),
126
  array('fuel-package', true),
128
  array('fuelphp-component', true),
129
  array('hurad-plugin', true),
130
  array('hurad-theme', true),
131
+ array('imagecms-template', true),
132
+ array('imagecms-module', true),
133
+ array('imagecms-library', true),
134
  array('joomla-library', true),
135
  array('kirby-plugin', true),
136
  array('kohana-module', true),
153
  array('piwik-plugin', true),
154
  array('phpbb-extension', true),
155
  array('pimcore-plugin', true),
156
+ array('plentymarkets-plugin', true),
157
  array('ppi-module', true),
158
  array('prestashop-module', true),
159
  array('prestashop-theme', true),
160
  array('puppet-module', true),
161
+ array('radphp-bundle', true),
162
  array('redaxo-addon', true),
163
  array('redaxo-bestyle-plugin', true),
164
+ array('reindex-theme', true),
165
+ array('reindex-plugin', true),
166
  array('roundcube-plugin', true),
167
  array('shopware-backend-plugin', true),
168
  array('shopware-core-plugin', true),
169
  array('shopware-frontend-plugin', true),
170
  array('shopware-theme', true),
171
+ array('shopware-plugin', true),
172
+ array('shopware-frontend-theme', true),
173
  array('silverstripe-module', true),
174
  array('silverstripe-theme', true),
175
  array('smf-module', true),
183
  array('tusk-asset', true),
184
  array('typo3-flow-plugin', true),
185
  array('typo3-cms-extension', true),
186
+ array('vanilla-plugin', true),
187
+ array('vanilla-theme', true),
188
  array('whmcs-gateway', true),
189
  array('wolfcms-plugin', true),
190
  array('wordpress-plugin', true),
191
  array('wordpress-core', false),
192
+ array('yawik-module', true),
193
  array('zend-library', true),
194
  array('zikula-module', true),
195
  array('zikula-theme', true),
196
  array('kodicms-plugin', true),
197
  array('kodicms-media', true),
198
+ array('phifty-bundle', true),
199
+ array('phifty-library', true),
200
+ array('phifty-framework', true),
201
  );
202
  }
203
 
227
  array('annotatecms-module', 'addons/modules/my_module/', 'vysinsky/my_module'),
228
  array('annotatecms-component', 'addons/components/my_component/', 'vysinsky/my_component'),
229
  array('annotatecms-service', 'addons/services/my_service/', 'vysinsky/my_service'),
230
+ array('attogram-module', 'modules/my_module/', 'author/my_module'),
231
  array('bitrix-module', 'bitrix/modules/my_module/', 'author/my_module'),
232
  array('bitrix-component', 'bitrix/components/my_component/', 'author/my_component'),
233
  array('bitrix-theme', 'bitrix/templates/my_theme/', 'author/my_theme'),
234
+ array('bitrix-d7-module', 'bitrix/modules/author.my_module/', 'author/my_module'),
235
+ array('bitrix-d7-component', 'bitrix/components/author/my_component/', 'author/my_component'),
236
+ array('bitrix-d7-template', 'bitrix/templates/author_my_template/', 'author/my_template'),
237
  array('bonefish-package', 'Packages/bonefish/package/', 'bonefish/package'),
238
  array('cakephp-plugin', 'Plugin/Ftp/', 'shama/ftp'),
239
  array('chef-cookbook', 'Chef/mre/my_cookbook/', 'mre/my_cookbook'),
240
  array('chef-role', 'Chef/roles/my_role/', 'mre/my_role'),
241
+ array('cockpit-module', 'cockpit/modules/addons/My_module/', 'piotr-cz/cockpit-my_module'),
242
  array('codeigniter-library', 'application/libraries/my_package/', 'shama/my_package'),
243
  array('codeigniter-module', 'application/modules/my_package/', 'shama/my_package'),
244
  array('concrete5-block', 'blocks/concrete5_block/', 'remo/concrete5_block'),
248
  array('craft-plugin', 'craft/plugins/my_plugin/', 'mdcpepper/my_plugin'),
249
  array('croogo-plugin', 'Plugin/Sitemaps/', 'fahad19/sitemaps'),
250
  array('croogo-theme', 'View/Themed/Readable/', 'rchavik/readable'),
251
+ array('decibel-app', 'app/someapp/', 'author/someapp'),
252
  array('dokuwiki-plugin', 'lib/plugins/someplugin/', 'author/someplugin'),
253
  array('dokuwiki-template', 'lib/tpl/sometemplate/', 'author/sometemplate'),
254
  array('dolibarr-module', 'htdocs/custom/my_module/', 'shama/my_module'),
257
  array('drupal-profile', 'profiles/my_module/', 'shama/my_module'),
258
  array('drupal-drush', 'drush/my_module/', 'shama/my_module'),
259
  array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'),
260
+ array('ee3-addon', 'system/user/addons/ee_theme/', 'author/ee_theme'),
261
+ array('ee3-theme', 'themes/user/ee_package/', 'author/ee_package'),
262
+ array('ee2-addon', 'system/expressionengine/third_party/ee_theme/', 'author/ee_theme'),
263
+ array('ee2-theme', 'themes/third_party/ee_package/', 'author/ee_package'),
264
  array('fuel-module', 'fuel/app/modules/module/', 'fuel/module'),
265
  array('fuel-package', 'fuel/packages/orm/', 'fuel/orm'),
266
  array('fuel-theme', 'fuel/app/themes/theme/', 'fuel/theme'),
267
  array('fuelphp-component', 'components/demo/', 'fuelphp/demo'),
268
  array('hurad-plugin', 'plugins/Akismet/', 'atkrad/akismet'),
269
  array('hurad-theme', 'plugins/Hurad2013/', 'atkrad/Hurad2013'),
270
+ array('imagecms-template', 'templates/my_template/', 'shama/my_template'),
271
+ array('imagecms-module', 'application/modules/my_module/', 'shama/my_module'),
272
+ array('imagecms-library', 'application/libraries/my_library/', 'shama/my_library'),
273
  array('joomla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
274
  array('kirby-plugin', 'site/plugins/my_plugin/', 'shama/my_plugin'),
275
  array('kohana-module', 'modules/my_package/', 'shama/my_package'),
301
  array('phpbb-style', 'styles/foo/', 'test/foo'),
302
  array('phpbb-language', 'language/foo/', 'test/foo'),
303
  array('pimcore-plugin', 'plugins/MyPlugin/', 'ubikz/my_plugin'),
304
+ array('plentymarkets-plugin', 'HelloWorld/', 'plugin-hello-world'),
305
  array('ppi-module', 'modules/foo/', 'test/foo'),
306
  array('puppet-module', 'modules/puppet-name/', 'puppet/puppet-name'),
307
+ array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
308
  array('redaxo-addon', 'redaxo/include/addons/my_plugin/', 'shama/my_plugin'),
309
  array('redaxo-bestyle-plugin', 'redaxo/include/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
310
+ array('reindex-theme', 'themes/my_module/', 'author/my_module'),
311
+ array('reindex-plugin', 'plugins/my_module/', 'author/my_module'),
312
  array('roundcube-plugin', 'plugins/base/', 'test/base'),
313
  array('roundcube-plugin', 'plugins/replace_dash/', 'test/replace-dash'),
314
  array('shopware-backend-plugin', 'engine/Shopware/Plugins/Local/Backend/ShamaMyBackendPlugin/', 'shama/my-backend-plugin'),
315
  array('shopware-core-plugin', 'engine/Shopware/Plugins/Local/Core/ShamaMyCorePlugin/', 'shama/my-core-plugin'),
316
  array('shopware-frontend-plugin', 'engine/Shopware/Plugins/Local/Frontend/ShamaMyFrontendPlugin/', 'shama/my-frontend-plugin'),
317
  array('shopware-theme', 'templates/my_theme/', 'shama/my-theme'),
318
+ array('shopware-frontend-theme', 'themes/Frontend/ShamaMyFrontendTheme/', 'shama/my-frontend-theme'),
319
+ array('shopware-plugin', 'custom/plugins/ShamaMyPlugin/', 'shama/my-plugin'),
320
  array('silverstripe-module', 'my_module/', 'shama/my_module'),
321
  array('silverstripe-module', 'sapphire/', 'silverstripe/framework', '2.4.0'),
322
  array('silverstripe-module', 'framework/', 'silverstripe/framework', '3.0.0'),
335
  array('typo3-flow-package', 'Packages/Application/my_package/', 'shama/my_package'),
336
  array('typo3-flow-build', 'Build/my_package/', 'shama/my_package'),
337
  array('typo3-cms-extension', 'typo3conf/ext/my_extension/', 'shama/my_extension'),
338
+ array('vanilla-plugin', 'plugins/my_plugin/', 'shama/my_plugin'),
339
+ array('vanilla-theme', 'themes/my_theme/', 'shama/my_theme'),
340
  array('whmcs-gateway', 'modules/gateways/gateway_name/', 'vendor/gateway_name'),
341
  array('wolfcms-plugin', 'wolf/plugins/my_plugin/', 'shama/my_plugin'),
342
  array('wordpress-plugin', 'wp-content/plugins/my_plugin/', 'shama/my_plugin'),
346
  array('zikula-theme', 'themes/my-test_theme/', 'my/test_theme'),
347
  array('kodicms-media', 'cms/media/vendor/my_media/', 'shama/my_media'),
348
  array('kodicms-plugin', 'cms/plugins/my_plugin/', 'shama/my_plugin'),
349
+ array('phifty-bundle', 'bundles/core/', 'shama/core'),
350
+ array('phifty-library', 'libraries/my-lib/', 'shama/my-lib'),
351
+ array('phifty-framework', 'frameworks/my-framework/', 'shama/my-framework'),
352
+ array('yawik-module', 'module/MyModule/', 'shama/my_module'),
353
  );
354
  }
355
 
427
  $this->assertEquals('my/custom/path/my_plugin/', $result);
428
  }
429
 
430
+ /**
431
+ * testVendorPath
432
+ */
433
+ public function testVendorPath()
434
+ {
435
+ $installer = new Installer($this->io, $this->composer);
436
+ $package = new Package('penyaskito/my_module', '1.0.0', '1.0.0');
437
+ $package->setType('drupal-module');
438
+ $consumerPackage = new RootPackage('drupal/drupal', '1.0.0', '1.0.0');
439
+ $this->composer->setPackage($consumerPackage);
440
+ $consumerPackage->setExtra(array(
441
+ 'installer-paths' => array(
442
+ 'modules/custom/{$name}/' => array(
443
+ 'vendor:penyaskito'
444
+ ),
445
+ ),
446
+ ));
447
+ $result = $installer->getInstallPath($package);
448
+ $this->assertEquals('modules/custom/my_module/', $result);
449
+ }
450
+
451
  /**
452
  * testNoVendorName
453
  */
vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Composer\Installers\Test;
3
+
4
+ use Composer\Composer;
5
+ use Composer\Installers\YawikInstaller;
6
+ use Composer\Package\Package;
7
+ use Composer\Package\PackageInterface;
8
+
9
+ /**
10
+ * Class YawikInstallerTest
11
+ *
12
+ * @package Composer\Installers\Test
13
+ */
14
+ class YawikInstallerTest extends TestCase
15
+ {
16
+ /**
17
+ * @varComposer
18
+ */
19
+ private $composer;
20
+
21
+ /**
22
+ * @var PackageInterface
23
+ */
24
+ private $io;
25
+
26
+ /**
27
+ * @var Package
28
+ */
29
+ private $package;
30
+
31
+ /**
32
+ * setUp
33
+ *
34
+ * @return void
35
+ */
36
+ public function setUp()
37
+ {
38
+ $this->package = new Package('YawikCompanyRegistration', '1.0', '1.0');
39
+ $this->io = $this->getMock('Composer\IO\PackageInterface');
40
+ $this->composer = new Composer();
41
+ }
42
+
43
+ /**
44
+ * testInflectPackageVars
45
+ *
46
+ * @dataProvider packageNameProvider
47
+ * @return void
48
+ */
49
+ public function testInflectPackageVars($input)
50
+ {
51
+ $installer = new YawikInstaller($this->package, $this->composer);
52
+ $result = $installer->inflectPackageVars(array('name' => $input));
53
+ $this->assertEquals($result, array('name' => 'YawikCompanyRegistration'));
54
+ }
55
+
56
+ public function packageNameProvider()
57
+ {
58
+ return array(
59
+ array('yawik-company-registration'),
60
+ array('yawik_company_registration'),
61
+ array('YawikCompanyRegistration')
62
+ );
63
+ }
64
+ }
vendor/xrstf/composer-php52/README.md CHANGED
@@ -3,27 +3,35 @@ PHP 5.2 Autoloading for Composer
3
 
4
  This package provides an easy way to get a PHP 5.2 compatible autoloader out of Composer. The generated autoloader is fully compatible to the original and is written into separate files, each ending with `_52.php`.
5
 
 
 
 
 
 
 
 
6
  Usage
7
  -----
8
 
9
  In your project's `composer.json`, add the following lines:
10
 
11
- :::json
12
- {
13
- "require": {
14
- "xrstf/composer-php52": "1.*"
15
- },
16
- "scripts": {
17
- "post-install-cmd": [
18
- "xrstf\\Composer52\\Generator::onPostInstallCmd"
19
- ],
20
- "post-update-cmd": [
21
- "xrstf\\Composer52\\Generator::onPostInstallCmd"
22
- ],
23
- "post-autoload-dump": [
24
- "xrstf\\Composer52\\Generator::onPostInstallCmd"
25
- ]
26
- }
27
  }
 
 
28
 
29
  After the next update/install, you will have a `vendor/autoload_52.php` file, that you can simply include and use in PHP 5.2 projects.
3
 
4
  This package provides an easy way to get a PHP 5.2 compatible autoloader out of Composer. The generated autoloader is fully compatible to the original and is written into separate files, each ending with `_52.php`.
5
 
6
+ Legacy
7
+ ------
8
+
9
+ Please do not use this, if you can avoid it. It's a horrible hack, often breaks and is extremely tied to Composer's interna. This package was originally developed in 2012, when PHP 5.2 was much more common on cheap webhosts.
10
+
11
+ In 2016, this package has been moved from Bitbucket to a Github organization, because the original developer could no longer reliably maintain it. This is the reason for this legacy package name ``xrstf/...``.
12
+
13
  Usage
14
  -----
15
 
16
  In your project's `composer.json`, add the following lines:
17
 
18
+ ```json
19
+ {
20
+ "require": {
21
+ "xrstf/composer-php52": "1.*"
22
+ },
23
+ "scripts": {
24
+ "post-install-cmd": [
25
+ "xrstf\\Composer52\\Generator::onPostInstallCmd"
26
+ ],
27
+ "post-update-cmd": [
28
+ "xrstf\\Composer52\\Generator::onPostInstallCmd"
29
+ ],
30
+ "post-autoload-dump": [
31
+ "xrstf\\Composer52\\Generator::onPostInstallCmd"
32
+ ]
 
33
  }
34
+ }
35
+ ```
36
 
37
  After the next update/install, you will have a `vendor/autoload_52.php` file, that you can simply include and use in PHP 5.2 projects.
vendor/xrstf/composer-php52/composer.json CHANGED
@@ -1,10 +1,9 @@
1
  {
2
  "name": "xrstf/composer-php52",
3
  "license": "MIT",
4
- "homepage": "http://www.xrstf.de/",
5
  "support": {
6
- "source": "https://bitbucket.org/xrstf/composer-php52",
7
- "issues": "https://bitbucket.org/xrstf/composer-php52/issues"
8
  },
9
  "autoload": {
10
  "psr-0": {
1
  {
2
  "name": "xrstf/composer-php52",
3
  "license": "MIT",
 
4
  "support": {
5
+ "source": "https://github.com/composer-php52/composer-php52",
6
+ "issues": "https://github.com/composer-php52/composer-php52/issues"
7
  },
8
  "autoload": {
9
  "psr-0": {
vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php CHANGED
@@ -54,7 +54,7 @@ class AutoloadGenerator extends BaseGenerator {
54
  // Force scanPsr0Packages when classmap is authoritative
55
  $scanPsr0Packages = true;
56
  }
57
-
58
  $filesystem = new Filesystem();
59
  $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
60
 
@@ -228,7 +228,7 @@ return ComposerAutoloaderInit$suffix::getLoader();
228
  AUTOLOAD;
229
  }
230
 
231
- protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader) {
232
  // TODO the class ComposerAutoloaderInit should be revert to a closure
233
  // when APC has been fixed:
234
  // - https://github.com/composer/composer/issues/959
54
  // Force scanPsr0Packages when classmap is authoritative
55
  $scanPsr0Packages = true;
56
  }
57
+
58
  $filesystem = new Filesystem();
59
  $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
60
 
228
  AUTOLOAD;
229
  }
230
 
231
+ protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion = 70000) {
232
  // TODO the class ComposerAutoloaderInit should be revert to a closure
233
  // when APC has been fixed:
234
  // - https://github.com/composer/composer/issues/959