Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature visualisation #17

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Conversation

bonndan
Copy link

@bonndan bonndan commented Nov 11, 2013

Concerning #16

A configuration value object has been introduced to control if properties shall be rendered and the color of the current state.


require_once __DIR__ . '/../vendor/autoload.php';

// Implement your document class

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a clear comment please fix or remove

@cordoval
Copy link

please provide some sort of documentation with this PR

@yohang
Copy link
Owner

yohang commented Nov 12, 2013

I'll review this PR soon, but i'm not for generating the picture from Finite.

I think generating the dot file is enough, and it removes lot of potential issues (with shell_exec for example)

@cordoval
Copy link

i agree with @yohang , maybe add a folder for a silex or cilex or symfony command for those who want to run the command and do it

@bonndan
Copy link
Author

bonndan commented Nov 12, 2013

I've polished the code a bit. Reference to graphviz as dependency is still missing. I'm not sure about that.

If you don't want to run graphviz and just have the dot source, just specify a file having a ".dot" extension as output.

$output = 0;
$tempFile = tempnam(sys_get_temp_dir(), 'dot');
$this->dumpGraphToFile($tempFile);
exec('dot -T' . $this->type . ' -o' . $target . ' ' . $tempFile, $output, $returnVar);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I say in my previous comment, I don't think Finite have to generate the graph has a picture. Generating the dotfile should be enough.

@yohang
Copy link
Owner

yohang commented Nov 19, 2013

I let you some comments, the point is that I don't want Finite to deal with the filesystem and / or OS. I really want to avoid any kind of exec and / or unlink as that's a pain to maintain, and there is others libraries that provide much more features in terms of process execution and filesystem (symfony/process and gaufrette for example).

@bonndan
Copy link
Author

bonndan commented Nov 20, 2013

OK, thanks for the feedback. I'll try to address it at the weekend.

@estahn
Copy link

estahn commented Feb 10, 2014

👍

@yohang yohang mentioned this pull request May 12, 2014
@filipegarcia
Copy link

👍

Padam87 pushed a commit to Padam87/Finite that referenced this pull request Jan 7, 2015
Padam87 added a commit to Padam87/Finite that referenced this pull request Jan 7, 2015
@ksn135 ksn135 mentioned this pull request Nov 30, 2015
@lplume
Copy link

lplume commented May 30, 2019

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants