Skip to content

Instantly share code, notes, and snippets.

View MarioBlazek's full-sized avatar
🎯
Focusing

Mario Blazek MarioBlazek

🎯
Focusing
View GitHub Profile
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
class WpPluginMakerCommand extends Command
{
}
$this->finder->notPath('vendor');
$this->finder->files()->in(__DIR__.'/../../wp-plugin-skeleton');
@MarioBlazek
MarioBlazek / evenet_subscriber.php
Created October 1, 2021 07:05
My event subscriber
public static function getSubscribedEvents(): array
{
return [
UserDeactivatedEvent::class => 'onUserActivation',
];
}
$fields[] = new Search\Field(
'fulltext',
$name->value->data,
Search\FieldType\FullTextField()
);
$fields[] = new Search\Field(
'fulltext',
$this->process($caption),
Search\FieldType\FullTextField()
php bin/console ezplatform:reindex --siteaccess=ngadminui
php bin/console app:example
Converter implementation used: App\Converter\BaseUnitsConverter
$container->registerForAutoconfiguration(Command::class)
->addTag('console.command');
php bin/console debug:container App\Command\ExampleCommand