# Worked extension examples

These developer-facing recipes are kept beside the package contract. Replace the example values with the site-specific records and data objects used by the calling workflow.

<!-- example: action applyRedirectImportPlan -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ApplyRedirectImportPlanAction::class)->handle(...$inputs);
```

<!-- example: action auditRedirectRuleScopeKeyMigration -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\AuditRedirectRuleScopeKeyMigrationAction::class)->handle(...$inputs);
```

<!-- example: action buildCanonicalUrl -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\BuildCanonicalUrlAction::class)->handle(...$inputs);
```

<!-- example: action buildNotFoundRedirectSuggestions -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\BuildNotFoundRedirectSuggestionsAction::class)->handle(...$inputs);
```

<!-- example: action buildRedirectImportPlan -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\BuildRedirectImportPlanAction::class)->handle(...$inputs);
```

<!-- example: action buildRedirectRulesCsv -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\BuildRedirectRulesCsvAction::class)->handle(...$inputs);
```

<!-- example: action buildRedirectRulesCsvTemplate -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\BuildRedirectRulesCsvTemplateAction::class)->handle(...$inputs);
```

<!-- example: action convertNotFoundOpportunityToRedirect -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ConvertNotFoundOpportunityToRedirectAction::class)->handle(...$inputs);
```

<!-- example: action exportRedirectRules -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ExportRedirectRulesAction::class)->handle(...$inputs);
```

<!-- example: action importRedirectRules -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ImportRedirectRulesAction::class)->handle(...$inputs);
```

<!-- example: action importSeoSuiteBrokenLinks -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ImportSeoSuiteBrokenLinksAction::class)->handle(...$inputs);
```

<!-- example: action previewRedirectRulesImport -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\PreviewRedirectRulesImportAction::class)->handle(...$inputs);
```

<!-- example: action pruneNotFoundOpportunities -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\PruneNotFoundOpportunitiesAction::class)->handle(...$inputs);
```

<!-- example: action pruneRedirectHits -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\PruneRedirectHitsAction::class)->handle(...$inputs);
```

<!-- example: action recordChangedUrlRedirect -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\RecordChangedUrlRedirectAction::class)->handle(...$inputs);
```

<!-- example: action recordNotFoundOpportunity -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\RecordNotFoundOpportunityAction::class)->handle(...$inputs);
```

<!-- example: action recordRedirectHit -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\RecordRedirectHitAction::class)->handle(...$inputs);
```

<!-- example: action resolveRedirectRule -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\ResolveRedirectRuleAction::class)->handle(...$inputs);
```

<!-- example: action retryRedirectImportCacheInvalidation -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\RetryRedirectImportCacheInvalidationAction::class)->handle(...$inputs);
```

<!-- example: action setNotFoundOpportunityStatus -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\SetNotFoundOpportunityStatusAction::class)->handle(...$inputs);
```

<!-- example: action setRedirectRuleStatus -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\SetRedirectRuleStatusAction::class)->handle(...$inputs);
```

<!-- example: action upsertRedirectRule -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\UrlManager\Actions\UpsertRedirectRuleAction::class)->handle(...$inputs);
```