example.php
Create a project map (similar to a sitemap) of project.
The Reflection component is capable of analyzing one or more files into a hierarchy of objects representing the
structure of your project. It does this by analyzing the source code of each individual file using the
analyze()
method in the Analyzer class.
Because the Analyzer class requires a whole series of objects that interact together a factory method create()
is available. This method instantiates all objects and provides a reasonable default to start using the Analyzer.
There is also a Service Provider (\phpDocumentor\Descriptor\ServiceProvider
) that can be used with either Silex
or Cilex instead of using the factory method; this will make it easier to plug in your own features if you want to.