<?php
/**
* Copyright (C) 2021 Rhyme Digital, LLC.
*
* @link https://rhyme.digital
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
namespace Rhyme\WMassArtsHub\EventListener;
use Contao\CoreBundle\Event\GenerateSymlinksEvent;
use Webmozart\PathUtil\Path;
/**
* Class Symlinks
* @package Rhyme\MRMBundle\EventListener
*/
class Symlinks
{
/**
* @var string
*/
private $projectDir;
public function __construct(string $projectDir)
{
$this->projectDir = $projectDir;
}
public function addSymlinks(GenerateSymlinksEvent $event)
{
$event->addSymlink('vendor/select2', Path::join('web', 'vendor/select2'));
}
}