10000 Merge branch '4.0' · symfony/symfony@07ea1bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 07ea1bb

Browse files
committed
Merge branch '4.0'
* 4.0: fixed bad merge
2 parents c53541f + cb06e2a commit 07ea1bb

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9696
$targetArg = $kernel->getContainer()->getParameter('kernel.project_dir').'/'.$targetArg;
9797

9898
if (!is_dir($targetArg)) {
99-
<<<<<<< HEAD
100-
throw new \InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $input->getArgument('target')));
101-
=======
102-
// deprecated, logic to be removed in 4.0
103-
// this allows the commands to work out of the box with web/ and public/
104-
if (is_dir(dirname($targetArg).'/web')) {
105-
$targetArg = dirname($targetArg).'/web';
106-
} else {
107-
throw new InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $input->getArgument('target')));
108-
}
109-
>>>>>>> 3.4
99+
throw new InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $input->getArgument('target')));
110100
}
111101
}
112102

src/Symfony/Bundle/SecurityBundle/Command/UserPasswordEncoderCommand.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,7 @@ private function getUserClass(InputInterface $input, SymfonyStyle $io)
192192
}
193193

194194
if (empty($this->userClasses)) {
195-
<<<<<<< HEAD
196-
throw new \RuntimeException('There are no configured encoders for the "security" extension.');
197-
=======
198-
if (null === $this->encoderFactory) {
199-
// BC to be removed and simply keep the exception whenever there is no configured user classes in 4.0
200-
return User::class;
201-
}
202-
203195
throw new RuntimeException('There are no configured encoders for the "security" extension.');
204-
>>>>>>> 3.4
205196
}
206197

207198
if (!$input->isInteractive() || 1 === count($this->userClasses)) {

0 commit comments

Comments
 (0)
0