Skip to content

Extension points

phil/url-bundle

What an application adds or extends. The addresses and kinds are phil/url's.

The application's own kinds

An enum of the application's implementing Phil\Url\UrlType is accepted wherever kinds are named: in the types of TypedUrlType and of UrlOfType, as an enum class, a case, an EnumSet or a list of these. Listed before KnownUrlType, its kinds win detection over the international ones — see Accepted kinds.

Forms and validation

PointHow
The kinds a field detectsThe types option of TypedUrlType — see Forms
The kinds acceptedThe types of UrlOfType; its message and typeMessage — see Validation
More than the field doesA form type extension of the application's on TypedUrlType

Storage and Twig

PointHow
Where an address is keptThe phil_url column type, and the kind in a column of the application's — see Doctrine
How an address is shownurl_display, url_type() and url_type_label — see Twig