Skip to content

Commit

Permalink
Added Classmaps For Autoloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Apr 16, 2020
1 parent f9f1517 commit 6d48204
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 18 deletions.
3 changes: 3 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function __construct() {
'autoloader' => array(
'namespace' => 'WC_Quick_Buy',
'base_path' => $this->plugin_path( 'includes/' ),
'options' => array(
'classmap' => $this->plugin_path( 'classmaps.php' ),
),
),
);
$options['settings_page'] = array(
Expand Down
23 changes: 23 additions & 0 deletions classmaps.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Last Updated: Thu 16-Apr-2020 / 05:59:33:am
* Total Class: 14
* Namespace:
*/

return array(
'WC_Quick_Buy\\Admin\\Settings' => 'admin/class-settings.php',
'WC_Quick_Buy\\Admin\\Settings\\Button_Styling' => 'admin/settings/trait-button-styling.php',
'WC_Quick_Buy\\Admin\\Settings\\General' => 'admin/settings/trait-general.php',
'WC_Quick_Buy\\Add_To_Cart_Redirect' => 'class-add-to-cart-redirect.php',
'WC_Quick_Buy\\Button_Generator' => 'class-button-generator.php',
'WC_Quick_Buy\\Button_Placement' => 'class-button-placement.php',
'WC_Quick_Buy\\Cart_Clear_Handler' => 'class-cart-clear-handler.php',
'WC_Quick_Buy\\Generator_Base' => 'class-generator-base.php',
'WC_Quick_Buy\\Helper' => 'class-helper.php',
'WC_Quick_Buy\\Load_Custom_Styles' => 'class-load-custom-styles.php',
'WC_Quick_Buy\\URL_Endpoint' => 'class-url-endpoint.php',
'WC_Quick_Buy\\URL_Generator' => 'class-url-generator.php',
'WC_Quick_Buy\\Shortcodes\\Button' => 'shortcodes/class-button.php',
'WC_Quick_Buy\\Shortcodes\\Link' => 'shortcodes/class-link.php',
);
35 changes: 19 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@
"name" : "varunsridharan/woocommerce-quick-buy",
"description" : "Add Quick buy button to redirect user to checkout / cart immediately when he click quick buy button",
"support" : {
"email" : "varunsridharan23@gmail.com",
"issues" : "https://github.com/varunsridharan/woocommerce-quick-buy/issues/",
"source" : "https://github.com/varunsridharan/woocommerce-quick-buy/"
"email" : "varunsridharan23@gmail.com",
"issues" : "https://github.com/varunsridharan/woocommerce-quick-buy/issues/",
"source" : "https://github.com/varunsridharan/woocommerce-quick-buy/"
},
"homepage" : "https://wordpress.org/plugins/woocommerce-quick-buy",
"license" : "GPL-3.0-or-later",
"require" : {
"wponion/wponion" : "*",
"varunsridharan/vsp-framework" : "*"
"wponion/wponion" : "*",
"varunsridharan/vsp-framework" : "*"
},
"require-dev" : {
"varunsridharan/wp-cli-textdomain" : "*",
"varunsridharan/wp2github-md" : "*"
"varunsridharan/wp-cli-textdomain" : "*",
"varunsridharan/wp2github-md" : "*",
"mustangostang/spyc" : "*",
"varunsridharan/php-classmap-generator" : "*"
},
"scripts" : {
"makepot" : "makepot ./wp-pot.json",
"add-textdomain" : "add-textdomain -i wc-quick-buy ./",
"makepot" : "makepot ./wp-pot.json",
"add-textdomain" : "add-textdomain -i wc-quick-buy ./",
"wp2githubmd" : "wp2gitthub-md \"woocommerce-quick-buy\" \"./readme.txt\" ",
"build" : [ "@add-textdomain", "@makepot", "@wp2githubmd" ]
"classmaps" : "classmap-generator \"includes/\" ./classmaps.php",
"build" : [ "@classmaps", "@makepot", "@add-textdomain", "@wp2githubmd" ]
},
"authors" : [
{
"name" : "Varun Sridharan",
"email" : "varunsridharan23@gmail.com",
"homepage" : "http://varunsridharan.in",
"role" : "Developer"
}
{
"name" : "Varun Sridharan",
"email" : "varunsridharan23@gmail.com",
"homepage" : "http://varunsridharan.in",
"role" : "Developer"
}
]
}
90 changes: 88 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d48204

Please sign in to comment.