public function addEnvironmentVariable(PostProcessCreationEvent $event)
    {
        // Get the current set environment variables.
        $env = $event->getProcess()->getEnv();

        // Add the "para_project" environment variable
        $env['para_project'] = $event->getProject()->getName();

        // Save the environment variables in the process.
        $event->getProcess()->setEnv($env);
    }
public function addEnvironmentVariable(PostProcessCreationEvent $event)
    {
        // Get the current set environment variables.
        $env = $event->getProcess()->getEnv();

        // Add the "para_project" environment variable
        $env['para_project'] = $event->getProject()->getName();

        // Save the environment variables in the process.
        $event->getProcess()->setEnv($env);
    }
public function addEnvironmentVariable ( PostProcessCreationEvent $ event ) { // Get the current set environment variables. $ env = $ event -> getProcess ( ) -> getEnv ( ) ; // Add the "para_project" environment variable $ env [ 'para_project' ] = $ event -> getProject ( ) -> getName ( ) ; // Save the environment variables in the process. $ event -> getProcess ( ) -> setEnv ( $ env ) ; }
This callback method adds an environment variable to a created process.

@param \Para\Event\PostProcessCreationEvent $event
This callback method adds an environment variable to a created process .