title: How to call objects that uses sap.ui.require sentence
body: <p>I've been checking last openui5 documentation and I saw that there is a "new way" of creating classes. </p>
  
  <p>So now, using sap.ui.define we can create classes in a AMD way like the following - </p>
  
  <pre><code>sap.ui.define(['jquery.sap.global', 'sap/ui/base/Object'],
      function(jQuery, Object) {
          "use strict";
  
      var foo = Object.extend("Foo", {
          metadata : {
              properties : {}
          }
      });
  
      foo.prototype.someFunction = function(){};
  
      return foo;
  },true);
  </code></pre>
  
  <p>The thing is that I'm not sure how to call this kind of classes from controllers. I would like to use AMD syntax in the control, but I haven't found any example - </p>
  
  <pre><code>(function() {
      'use strict';
  
          sap.ui.controller('settings.mvc.controller.App', {
  
              onInit: function() {
                   //Foo is always undefined
              },
          });
  
  })();
  </code></pre>