public function register(Container $container, $alias = null)
    {
        $container->set('Repository', [$this, 'createRepositoryFactory'], true, true);

        if (!empty($alias)) {
            $container->alias($alias, 'Repository');
        }
    }
public function register(Container $container, $alias = null)
    {
        $container->set('Repository', [$this, 'createRepositoryFactory'], true, true);

        if (!empty($alias)) {
            $container->alias($alias, 'Repository');
        }
    }
public function register ( Container $ container , $ alias = null ) { $ container -> set ( 'Repository' , [ $ this , 'createRepositoryFactory' ] , true , true ) ; if ( ! empty ( $ alias ) ) { $ container -> alias ( $ alias , 'Repository' ) ; } }
Registers a RepositoryFactory with the container

@param   Container $container The DI container
@param   string    $alias     An optional alias

@return  void
Registers a RepositoryFactory with the container