So you want to configure an sftp only user?
groupadd sftponly
<?php | |
function trimURL( $psInput ) | |
{ | |
if ( mb_strlen( $psInput ) < 39 ) | |
{ | |
return $psInput ; | |
} | |
$aURL = @ parse_url( $psInput ); |
use Symfony\CS\FixerInterface; | |
use Symfony\CS\Tokens; | |
class ShortArraySyntaxFixer implements FixerInterface | |
{ | |
public function fix(\SplFileInfo $file, $content) | |
{ | |
$tokens = Tokens::fromCode($content); | |
for ($index = 0, $c = $tokens->count(); $index < $c; $index++) { |
Patient Zero - Infected - Hammer Fall | |
===================================== | |
I code alone, my screen begins to peel | |
Forsaken in my misery to battle this "OR" deal | |
I can't resist the cravings, | |
no I have to ease the pain | |
My screaming brain is melting slowly, | |
turning me insane |
<?php | |
use Assert\Assertion; | |
trait DiffObjectCollections | |
{ | |
/** | |
* @var object[] | |
*/ | |
protected $items; |
<?php | |
namespace App; | |
require __DIR__.'/vendor/autoload.php'; | |
use Symfony\Component\Console\Application; | |
use Symfony\Component\Console\ConsoleEvents; | |
use Symfony\Component\Console\Event\ConsoleCommandEvent; | |
use Symfony\Component\Console\Input\InputArgument; |
public abstract class JooqObjectReflexionMapper<R> extends JooqObjectMapper<R> { | |
public JooqObjectReflexionMapper(ObjectMapper jackson) { | |
super(jackson); | |
} | |
@Override | |
public R map(Record record) { | |
HashMap<String, Class<?>> types = mapFieldsToTypes(); | |
R instance = newInstance(); |
ARG BUILD_VERSION | |
FROM example.com/app:${BUILD_VERSION} | |
# copy QA tools from a known source | |
COPY --from=jakzal/phpqa:alpine /tools /tools/ | |
COPY --from=jakzal/phpqa:alpine /usr/bin/composer /tools/ | |
RUN apk add --update --no-cache \ | |
curl \ | |
openssl \ |
<?php | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\Extension\Core\Type\FormType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormError; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
class TransformationFailureExtension extends AbstractTypeExtension |
There was a discussion about the ordering for the Forms (view level). symfony/symfony#5827 which unfortunately ended without a consensus.
You can handle this in the template itself, but that only works if you control the template that is used. Which is not always the case, FormTypeExtensions adding additional forms and theming like the SyliusThemeBundle provides.
Which means that whenever you add additional forms or change the theme you need to update this at multiple places.