本文整理汇总了PHP中Package::addRule方法的典型用法代码示例。如果您正苦于以下问题:PHP Package::addRule方法的具体用法?PHP Package::addRule怎么用?PHP Package::addRule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Package
的用法示例。
在下文中一共展示了Package::addRule方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/cme');
$package->addRule(new Rule('dataobjects', 'CME', array('AccountCMEProgress', 'AccountEarnedCMECredit', 'Account', 'Credit', 'Evaluation', 'EvaluationReport', 'EvaluationResponse', 'FrontMatter', 'Provider', 'Quiz', 'QuizReport', 'QuizResponse', 'Wrapper')));
$package->addRule(new Rule('certificates', 'CME', 'Certificate'));
$package->addRule(new Rule('pages', 'CME', array('Page', 'Server')));
$package->addRule(new Rule('', 'CME'));
Autoloader::addPackage($package);
示例2: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/sniftr');
$package->addRule(new Rule('', 'Sniftr'));
Autoloader::addPackage($package);
示例3: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/creation');
$package->addRule(new Rule('', 'Creation'));
Autoloader::addPackage($package);
示例4: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/news_flash');
$package->addRule(new Rule('exceptions', 'NewsFlash', 'Exception'));
$package->addRule(new Rule('', 'NewsFlash'));
Autoloader::addPackage($package);
示例5: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/atom_feed');
$package->addRule(new Rule('', 'AtomFeed'));
Autoloader::addPackage($package);
示例6: Package
<?php
namespace Silverorange\Autoloader;
$package = new Package('silverorange/blorg');
$package->addRule(new Rule('pages', 'Blorg', array('Page', 'Server')));
$package->addRule(new Rule('gadgets', 'Blorg', 'Gadget'));
$package->addRule(new Rule('views', 'Blorg', 'View'));
$package->addRule(new Rule('dataobjects', 'Blorg', array('Binding', 'Wrapper', 'Author', 'Comment', 'FileImage', 'File', 'Post', 'Tag')));
$package->addRule(new Rule('', 'Blorg'));
Autoloader::addPackage($package);