So you want to configure an sftp only user?
groupadd sftponly
| <?php | |
| declare(strict_types=1); | |
| namespace App\Form; | |
| use App\Form\Util\StringUtil; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\Extension\Core\Type\CollectionType; | |
| use Symfony\Component\Form\FormInterface; |
| {% macro collection_item(form) %} | |
| <div data-form-collection-target="field"> | |
| {{ form_widget(form) }} | |
| <button data-action="form-collection#removeItem"> | |
| remove | |
| </button> | |
| </div> | |
| {% endmacro %} | |
| {% import _self as formMacros %} |
| <?php | |
| declare(strict_types=1); | |
| namespace App; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Twig\Environment; | |
| use League\OAuth2\Client\Provider\Google as GoogleProvider; |
| <?php | |
| // See this article : https://foobarflies.io/a-sensible-deployerphp-config-for-sf4 | |
| namespace Deployer; | |
| require 'recipe/symfony4.php'; | |
| set('ssh_type', 'native'); | |
| set('ssh_multiplexing', true); |
| 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 \ |
| 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(); |
| <?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; |