Skip to content
Snippets Groups Projects
Select Git revision
  • 102978e64e0b21a5d1fd50c41288b398d1e66b99
  • master default
  • php8.2-docker-services
  • 6.x
  • laminas
  • bertrand.gauthier-master-patch-70311
  • bertrand.gauthier-master-patch-87168
  • laminas_migration
  • sqlite
  • 4.0.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 1.0.1
  • 1.0.0
16 results

Module.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    UpdateBddCommandFactory.php 691 B
    <?php
    
    namespace Unicaen\BddAdmin\Command;
    
    use Psr\Container\ContainerInterface;
    use Unicaen\BddAdmin\Bdd;
    
    
    /**
     * Description of UpdateBddCommandFactory
     *
     * @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
     */
    class UpdateBddCommandFactory
    {
    
        /**
         * @param ContainerInterface $container
         * @param string             $requestedName
         * @param array|null         $options
         *
         * @return UpdateBddCommand
         */
        public function __invoke(ContainerInterface $container, $requestedName, $options = null): UpdateBddCommand
        {
            $command = new UpdateBddCommand;
            $command->setBdd($container->get(Bdd::class));
    
            return $command;
        }
    }