Commit 5d2d3692 authored by Jon Pugh's avatar Jon Pugh

Merge branch '4.x' into 4.x-cleanup

parents 5cfa3335 2b203d77
......@@ -32,6 +32,7 @@ use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Logger\ConsoleLogger;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem;
/**
* Class Provision
......@@ -465,6 +466,9 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
/**
* Determine the web user group on this server.
*
* @TODO: This should move to the Service class.
*
* @return mixed|null
*/
static function defaultWebGroup() {
......@@ -509,4 +513,20 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
}
return $group;
}
/**
* Return a new Symfony Filesystem component.
*
* Replacement for provision_file().
*
* Usage:
*
* Provision::fs()->exists();
*
*
* @return \Symfony\Component\Filesystem\Filesystem
*/
public static function fs() {
return new Filesystem();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment