(Future work) Define statement-level helper (Top
) to bypass prefixing
#176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft towards simplify
scoper.inc.php
. I don't need the simplification at quite this minute, and it would need some more work/testing. But I want to keep the patch around as a reminder for how to do it (*the next thatscoper.inc.php
comes to mind).Before
Bootstrap.php
andCmsBootstrap.php
need to reference various UF symbols (drupal_foobar
,JFactory
,wp_*
, etc.)scoper.inc.php
has a bunch of exclusions so that namespace-prefixes are not applied to these symbols.cv.git
andcivix.git
.After
Bootstrap.php
andCmsBootstrap.php' reference various UF symbols (
Top::call('drupal_foobar'),
Top::call('JFactory::getUser')`, etc)scoper.inc.php
don't need those exclusions.TODO
Patch currently defines the
Top
helper. Next: Swap the various calls inBootstrap.php
andCmsBootstrap.php
to useTop
. Remove the rules. Re-tests both cv and civix.