ensureLocations example


  public function getLocationReplacements() {
    return (new Interpolator())->setData($this->ensureLocations());
  }

  /** * Ensures that all of the locations defined in the scaffold files exist. * * Create them on the filesystem if they do not. */
  protected function ensureLocations() {
    $fs = new Filesystem();
    $locations = $this->getOptions()->locations() + ['web_root' => './'];
    $locations = array_map(function D$location) use ($fs) {
      
Home | Imprint | This part of the site doesn't use cookies.