src/Charcoal/Admin/ServiceProvider/AdminServiceProvider.php
protected function registerFactoryServices(Container $container)
    {
        /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */
        $container['property/input/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => PropertyInputInterface::class,
                'arguments'        => [[
                    'container' => $container,
                    'logger'    => $container['logger']
                ]],
                'resolver_options' => [
                    'suffix' => 'Input'
                ]
            ]);
        };

        /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */
        $container['property/display/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => PropertyDisplayInterface::class,
                'arguments'        => [[
                    'container' => $container,
                    'logger'    => $container['logger']
                ]],
                'resolver_options' => [
                    'suffix' => 'Display'
                ]
            ]);
        };

        /**
         * @param  Container $container A Pimple DI container.
         * @return FactoryInterface
         */
        $container['secondary-menu/group/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => SecondaryMenuGroupInterface::class,
                'default_class'    => GenericSecondaryMenuGroup::class,
                'arguments'        => [[
                    'container'      => $container,
                    'logger'         => $container['logger'],
                    'view'           => $container['view'],
                    'layout_builder' => $container['layout/builder']
                ]],
                'resolver_options' => [
                    'suffix' => 'SecondaryMenuGroup'
                ]
            ]);
        };
    }
protected function registerFactoryServices(Container $container)
    {
        /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */
        $container['property/input/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => PropertyInputInterface::class,
                'arguments'        => [[
                    'container' => $container,
                    'logger'    => $container['logger']
                ]],
                'resolver_options' => [
                    'suffix' => 'Input'
                ]
            ]);
        };

        /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */
        $container['property/display/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => PropertyDisplayInterface::class,
                'arguments'        => [[
                    'container' => $container,
                    'logger'    => $container['logger']
                ]],
                'resolver_options' => [
                    'suffix' => 'Display'
                ]
            ]);
        };

        /**
         * @param  Container $container A Pimple DI container.
         * @return FactoryInterface
         */
        $container['secondary-menu/group/factory'] = function (Container $container) {
            return new Factory([
                'base_class'       => SecondaryMenuGroupInterface::class,
                'default_class'    => GenericSecondaryMenuGroup::class,
                'arguments'        => [[
                    'container'      => $container,
                    'logger'         => $container['logger'],
                    'view'           => $container['view'],
                    'layout_builder' => $container['layout/builder']
                ]],
                'resolver_options' => [
                    'suffix' => 'SecondaryMenuGroup'
                ]
            ]);
        };
    }
protected function registerFactoryServices ( Container $ container ) { /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */ $ container [ 'property/input/factory' ] = function ( Container $ container ) { return new Factory ( [ 'base_class' => PropertyInputInterface :: class , 'arguments' => [ [ 'container' => $ container , 'logger' => $ container [ 'logger' ] ] ] , 'resolver_options' => [ 'suffix' => 'Input' ] ] ) ; } ; /**
         * @param  Container $container The Pimple DI container.
         * @return FactoryInterface
         */ $ container [ 'property/display/factory' ] = function ( Container $ container ) { return new Factory ( [ 'base_class' => PropertyDisplayInterface :: class , 'arguments' => [ [ 'container' => $ container , 'logger' => $ container [ 'logger' ] ] ] , 'resolver_options' => [ 'suffix' => 'Display' ] ] ) ; } ; /**
         * @param  Container $container A Pimple DI container.
         * @return FactoryInterface
         */ $ container [ 'secondary-menu/group/factory' ] = function ( Container $ container ) { return new Factory ( [ 'base_class' => SecondaryMenuGroupInterface :: class , 'default_class' => GenericSecondaryMenuGroup :: class , 'arguments' => [ [ 'container' => $ container , 'logger' => $ container [ 'logger' ] , 'view' => $ container [ 'view' ] , 'layout_builder' => $ container [ 'layout/builder' ] ] ] , 'resolver_options' => [ 'suffix' => 'SecondaryMenuGroup' ] ] ) ; } ; }
Registers the admin factories.

@param  Container $container The Pimple DI container.
@return void
Registers the admin factories .