Last active
March 28, 2017 17:51
-
-
Save michaelmcandrew/ab2309eb8ebc14d147f968d9c18e3e23 to your computer and use it in GitHub Desktop.
Using composer in extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "3sd/whizzy", | |
"description": "Blah blah blah...", | |
"authors": [ | |
{ | |
"name": "Michael McAndrew", | |
"email": "[email protected]" | |
} | |
], | |
"require": { | |
"simshaun/recurr": "^2.2" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CRM_Whizzy_Page_Whiz extends CRM_Core_Page { | |
public function run() { | |
$rule = new \Recurr\Rule; | |
parent::run(); | |
// etc... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
require_once 'whizzy.civix.php'; | |
/** | |
* Implements hook_civicrm_config(). | |
* | |
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config | |
*/ | |
function whizzy_civicrm_config(&$config) { | |
_whizzy_civix_civicrm_config($config); | |
} | |
// etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment