title: Swagger-PHP models not being read
body: <p>I currently need to document a php project utilizing swagger. However, it does not follow the traditional MVC pattern, and instead, it contains static files that fetch/take-in data and return something.</p>
  
  <p>Resources are created normally inside the json file, however, for some reason, the Models I make are not being rendered. Here is an example of what I would place inside one of my files:</p>
  
  <pre><code>/*@SWG\Resource(
   *    basePath="mypath",
   *    resourcePath="/resource",
   *    produces="['application/json']",
   *    @SWG\Api(
   *        path="resource",
   *        @SWG\Operation(
   *            method="POST",
   *            type="void",
   *            summary="Submit a json thing",
   *            @SWG\Consumes("application/json"),
   *            @SWG\Parameter(
   *                name="body",
   *                description="The json containing information",
   *                type="CLASS",
   *                required=true,
   *                paramType="body"
   *            ),
   *            nickname="resource"
   *        )
   *    )
   *) 
   */
  
  
  /**
   * @SWG\Model(id="CLASS", @SWG\Property(name="name", type="string")) 
   */
  </code></pre>
  
  <p><strong><em>This Problem Solved</em></strong> The models section is always skipped, and I am unable to get a model schema implemented in my json files.</p>
  
  <p><strong><em>New Problem</em></strong> I am getting either an out of memory error, or swagger stalls, depending on my server:</p>
  
  <p>On my personal server, when i try to document, it either lags/stalls, and I see no error messages (this does not occur with the example implementation from Swagger-php repository). When I am on the actual server, the out of memory error occurs: 
  PHP Fatal error: Out of memory (allocated -1202716672) (tried to allocate 261900 bytes) in phar:///usr/local/bin/swagger.phar/library/Swagger/Swagger.php on line 668 </p>
  
  <p>Regarding what I use to document this, I use the swagger.phar file from the command line.</p>
  
  <p>Any help regarding how to make models appear would be great. Thank you.</p>