PHP code example of guave / deepl-bundle
1. Go to this page and download the library: Download guave/deepl-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
guave / deepl-bundle example snippets
# src/Resolver/ActiveLanguageByProductLanguageResolver.php
namespace App\Resolver;
use Contao\DataContainer;
use Guave\DeeplBundle\Resolver\ActiveLanguageResolverInterface;
class ActiveLanguageByProductLanguageResolver implements ActiveLanguageResolverInterface
{
public function supports(DataContainer $dataContainer): bool
{
// TODO: Implement supports() method.
}
public function resolve(DataContainer $dataContainer): ?string
{
// TODO: Implement resolve() method.
}}
}
bash
php vendor/bin/contao-console assets:install