2017 © Pedro Peláez
 

library metadata-puli-file-locator

Puli-FileLocator for JMS Metadata

image

mi/metadata-puli-file-locator

Puli-FileLocator for JMS Metadata

  • Friday, October 9, 2015
  • by mi24administrator
  • Repository
  • 8 Watchers
  • 0 Stars
  • 3,097 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Metadata PuliFileLocator

Build Status Latest Stable Version Latest Unstable Version Total Downloads License StyleCI, (*1)

Overview

..., (*2)

Installation

  1. Add this library to your project as a composer dependency:
composer require mi/metadata-puli-file-locator

Usage

PuliDiscovery

For the usage of the puli discovery file locator use the PuliDiscoveryDriverFactory. To configure the metadata bind the query to "jms/serializer-metadata" with the parameter for the namespace prefix and the extension., (*3)

php puli.phar bind /puli/path/to/file/*.xml jms/serializer-metadata --param extension="xml" \
--namespace-prefix="Vendor\Namespace\Prefix"
$serializer =
JMS\Serializer\SerializerBuilder::create()
    ->setMetadataDriverFactory(new Mi\Puli\Serializer\Builder\PuliDiscoveryDriverFactory($puliDiscovery))
    ...
    ->build();

PuliRepository

For the usage of the puli repository file locator use the PuliRepositoryDriverFactory. Also the metadata are configure with the puli paths and namespace prefix., (*4)

$serializer =
JMS\Serializer\SerializerBuilder::create()
    ->addMetadataDir('/puli/path/to/file', 'Vendor\Namespace\Prefix')
    ->setMetadataDriverFactory(new Mi\Puli\Serializer\Builder\PuliRepositoryDriverFactory($puliRepository))
    ...
    ->build();

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is under the MIT license., (*5)

The Versions

09/10 2015

dev-master

9999999-dev

Puli-FileLocator for JMS Metadata

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

metadata puli jms-serializer

07/10 2015

v1.1.1

1.1.1.0

Puli-FileLocator for JMS Metadata

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

metadata puli jms-serializer

11/09 2015

v1.1.0

1.1.0.0

Puli-FileLocator for JMS Metadata

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

metadata puli jms-serializer

23/06 2015

v1.0.0

1.0.0.0

Puli-FileLocator for JMS Metadata

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

metadata puli