2017 © Pedro Peláez
 

symfony-bundle parse-bundle

AdadgioParseBundle

image

tiitoo/parse-bundle

AdadgioParseBundle

  • Thursday, April 13, 2017
  • by TiiToo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AdadgioParseBundle

Set set of helper to pass HTTP complex queries and convert them easily to query repositories, (*1)

Installation

Install with composer., (*2)

composer require adadgio/parse-bundle, (*3)

Make the following change to your AppKernel.php file to the registered bundles array., (*4)

new Adadgio\ParseBundle\AdadgioParseBundle(),

Requirements

This bundles required FosUserBundle, AdadgioGearBundle and AdadgioDQLBundle. But don't worry, thats automatic during a composer install., (*5)

Import routing files

// add routing
_adadgio_parse:
    resource: "@AdadgioParseBundle/Resources/config/routing.yml"

Create base classes

Create an installation entity like this., (*6)

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Adadgio\ParseBundle\Entity\ParseInstallation;

/**
 * @ORM\Table(name="my_installation")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\MyInstallationRepository")
 */
class MyInstallation extends ParseInstallation
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Up to you, but could be nice to link the installs with your users.
     * Dont forget to edit the relationshipon the user owning side as well.
     *
     * ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="installations")
     * ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true)
     */
    private $user;
}

Configuration reference

adadgio_parse:

    # the identity of your parse app
    # static api key auth
    application:
        client_id: anyTokenuLike
        client_key: anysEkreTY0liKe
        client_config: # optional, equivalent to parse config feature
            host: test-host.com
            protocol: test
            version: 1.1

    # misc config for external links in api returns
    miscellaneous:
        protocol: http://
        hostname: adadgio.dev

    # parse bundle internal and database settings
    settings:
        #field_prefix: m_ # optional, default null
        #never_prefixed: [ "email", "password" ] # optional, default [ "email", "password" ]
        #serialization:
            #hidden: ["password", "salt"]  # optional, defaults, when results are send from parse
        #conversion:
            #reserved: ["id", "objectId", "password", "salt", "email", "username", "confirmation_token"]  # optional, default, when results are received from parse
        #installation:
            #class: ~ # optional, default AppBundle\Entity\MyParseInstallation (if you wish to extend the install class)

    # your entities mapping(s)
    mapping:
        product:
            class: AppBundle\Entity\Product
            fields:
                id: ~ 
                name: ~ 

The Versions

13/04 2017

dev-master

9999999-dev

AdadgioParseBundle

  Sources   Download

MIT

The Requires

 

by Romain BRUCKERT