Skip to content

Commit

Permalink
Merge pull request #407 from Ronner/master
Browse files Browse the repository at this point in the history
hasParent method
  • Loading branch information
seancorfield committed Dec 1, 2015
2 parents af44b67 + 8564e90 commit 221c3cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/ioc.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ component {
( structKeyExists( variables, 'parent' ) && variables.parent.containsBean( beanName ) );
}

// return true if this factory has a parent.
public boolean function hasParent() {
return structKeyExists(variables, 'parent');
}

// programmatically register new beans with the factory (add an actual CFC)
public any function declareBean( string beanName, string dottedPath, boolean isSingleton = true, struct overrides = { } ) {
Expand Down

0 comments on commit 221c3cc

Please sign in to comment.