benchmarks/scenarios/ember.js
function generateController(owner, controllerName, context) {
    generateControllerFactory(owner, controllerName, context);

    var fullName = 'controller:' + controllerName;
    var instance = owner.lookup(fullName);

    if (_emberMetalProperty_get.get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {
      _emberMetalDebug.info('generated -> ' + fullName, { fullName: fullName });
    }

    return instance;
  }
function generateController(owner, controllerName, context) {
    generateControllerFactory(owner, controllerName, context);

    var fullName = 'controller:' + controllerName;
    var instance = owner.lookup(fullName);

    if (_emberMetalProperty_get.get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {
      _emberMetalDebug.info('generated -> ' + fullName, { fullName: fullName });
    }

    return instance;
  }
function generateController ( owner , controllerName , context ) { generateControllerFactory ( owner , controllerName , context ) ; var fullName = 'controller:' + controllerName ; var instance = owner . lookup ( fullName ) ; if ( _emberMetalProperty_get . get ( instance , 'namespace.LOG_ACTIVE_GENERATION' ) ) { _emberMetalDebug . info ( 'generated -> ' + fullName , { fullName : fullName } ) ; } return instance ; }
Generates and instantiates a controller.

The type of the generated controller factory is derived
from the context. If the context is an array an array controller
is generated, if an object, an object controller otherwise, a basic
controller is generated.

@for Ember
@method generateController
@private
@since 1.3.0
Generates and instantiates a controller .