PHP code example of wandi / i18n-bundle
1. Go to this page and download the library: Download wandi/i18n-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/ */
wandi / i18n-bundle example snippets
$bundles = [
// ...
new \Wandi\I18nBundle\WandiI18nBundle(),
];
class Foo
{
use TranslatableEntity;
// ...
/**
* @var string
*
* @ORM\Column(name="bar_fr", type="string", length=255)
*/
private $barFr;
/**
* @var string
*
* @ORM\Column(name="bar_en", type="string", length=255)
*/
private $barEn;
}
$foo->getBar();