Work In Progress

This book is currently work in progress. Some sections are not yet written. Thank you for your understanding!

Using your extension class in the service provider

As you remember from the service provider section, in Part 2.a you need to instantiate the extension class. These lines would look like this:

$component = new \Acme\Component\Example\Administrator\Extension\ExampleComponent(
  $container->get(ComponentDispatcherFactoryInterface::class)
);

Simple, isn't it?