Skip to content

Instantly share code, notes, and snippets.

View isabek's full-sized avatar
💭
tothemoon

Isabek Tashiev isabek

💭
tothemoon
View GitHub Profile
React.createBackboneComponent = function (spec, compname) {
return React.createClass(_.extend({
// Assistants
serializeState: function () {
this.replaceState(this.serialize());
},
getModel: function () {
return this.props.model;
},
el: function () {
<?php
namespace Majax\PortalBundle\Builder;
use Symfony\Bundle\DoctrineBundle\Registry;
class SiteListBuilder {
/** @var \Symfony\Bundle\DoctrineBundle\Registry */
private $orm;
public function __construct($orm)