Skip to content
Browse files

Extension rename to Atlantic18BehaviorExtension

  • Loading branch information
mabar committed Nov 26, 2019
1 parent 4cc836b commit bc5a6d8cf66bca73f10a71553751faf8745b1aae
@@ -23,15 +23,15 @@ Register extension

nettrine.extensions: Nettrine\Extensions\Atlantic18\DI\DoctrineExtensionsExtension
nettrine.extensions.atlantic18: Nettrine\Extensions\Atlantic18\DI\Atlantic18BehaviorExtension

## Configuration

Configure listeners. By default all listeners are disabled, enable only required listeners.

loggable: off
sluggable: off
softDeleteable: off
@@ -62,22 +62,22 @@ orm.annotations:
- Gedmo\Tree\Entity

If you using `nettrine/dbal` all listeners are registered automatically, or you have to register it manually:
If you using `nettrine/dbal` all listeners are registered automatically, or you have to register it manually:

// Get EventManager, from DI or Entity Manager
$evm = $em->getEventManager();
// Register desired listener to event
### [Translatable](

TranslatableListener has a complex configuration:

translatable: cs_CZ
default: cs_CZ
@@ -20,7 +20,7 @@
* @property-read stdClass $config
class DoctrineExtensionsExtension extends CompilerExtension
class Atlantic18BehaviorExtension extends CompilerExtension

public const TAG_NETTRINE_SUBSCRIBER = 'nettrine.subscriber';
@@ -5,10 +5,10 @@
use Nette\DI\Compiler;
use Nette\DI\Container;
use Nette\DI\ContainerLoader;
use Nettrine\Extensions\Atlantic18\DI\DoctrineExtensionsExtension;
use Nettrine\Extensions\Atlantic18\DI\Atlantic18BehaviorExtension;
use PHPUnit\Framework\TestCase;

final class DoctrineExtensionsExtensionTest extends TestCase
final class Atlantic18BehaviorExtensionTest extends TestCase

@@ -18,7 +18,7 @@ public function testDefault(): void
$loader = new ContainerLoader(__DIR__ . '/../../tmp', true);
$class = $loader->load(static function (Compiler $compiler): void {
$compiler->addExtension('extensions', new DoctrineExtensionsExtension());
$compiler->addExtension('extensions', new Atlantic18BehaviorExtension());
}, '1a');

$container = new $class();

0 comments on commit bc5a6d8

Please sign in to comment.
You can’t perform that action at this time.