Enhance the plantUML plugin.

I’ve just committed (6dd4933) an improvement in the plantUML plugin. Class diagram display now class constants.

Run the command below
$ php bin/reflect --profile --plantUML:run --alias SFinder --class="Symfony\Component\Finder\Finder"
Requires that your reflect.json configuration file declare the source Symfony/Finder.

You will get such output.

set namespaceSeparator none

namespace Symfony.Component.Finder {
class Finder{
    +IGNORE_VCS_FILES
    +IGNORE_DOT_FILES
    ..
    -mode
    -names
    -notNames
    -exclude
    -filters
    -depths
    -sizes
    -followLinks
    -sort
    -ignore
    -dirs
    -dates
    -iterators
    -contains
    -notContains
    -adapters
    -paths
    -notPaths
    -ignoreUnreadableDirs
    -vcsPatterns
    --
    +__construct()
    +create()
    +addAdapter()
    +useBestAdapter()
    +setAdapter()
    +removeAdapters()
    +getAdapters()
    +directories()
    +files()
    +depth()
    +date()
    +name()
    +notName()
    +contains()
    +notContains()
    +path()
    +notPath()
    +size()
    +exclude()
    +ignoreDotFiles()
    +ignoreVCS()
    +addVCSPattern()
    +sort()
    +sortByName()
    +sortByType()
    +sortByAccessedTime()
    +sortByChangedTime()
    +sortByModifiedTime()
    +filter()
    +followLinks()
    +ignoreUnreadableDirs()
    +in()
    +getIterator()
    +append()
    +count()
    -sortAdapters()
    -searchInDirectory()
    -buildAdapter()
    -resetAdapterSelection()
}
}
interface IteratorAggregate
IteratorAggregate <|.. Finder
interface Countable
Countable <|.. Finder

Put in in a file , e.g classDiagram.plantuml, and send the result to plantUML

$ java -jar plantuml.jar classDiagram.plantuml

That should give something like :

symfony_finder.classdiagram.png
Published by Laurent Laville on 2014-04-10