This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cyant.chat.protocol; | |
import com.cyant.chat.CustomerEvents; | |
import com.cyant.chat.events.customer.InitiateEvent; | |
import com.cyant.chat.modal.CustomerUser; | |
import com.cyant.chat.modal.Organisation; | |
import com.cyant.chat.protocol.listener.CustomerActivity; | |
import com.cyant.chat.service.OrganisationService; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cyant.chat.protocol.listener; | |
import com.cyant.chat.modal.Customer; | |
import com.cyant.chat.modal.customer.Activity; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import org.atmosphere.cpr.AtmosphereRequest; | |
import org.atmosphere.cpr.AtmosphereResource; | |
import org.atmosphere.cpr.AtmosphereResourceEvent; | |
import org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter; | |
import org.slf4j.Logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cyant.chat.protocol; | |
import com.cyant.chat.Organisation; | |
import com.cyant.chat.event.ErrorEvent; | |
import com.cyant.chat.user.CustomerUser; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.github.fge.jackson.JsonLoader; | |
import org.atmosphere.cache.UUIDBroadcasterCache; | |
import org.atmosphere.client.TrackMessageSizeInterceptor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cyant.chat.protocol; | |
import com.cyant.chat.Organisation; | |
import com.cyant.chat.event.ErrorEvent; | |
import com.cyant.chat.user.OperatorUser; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.github.fge.jackson.JsonLoader; | |
import org.atmosphere.cache.UUIDBroadcasterCache; | |
import org.atmosphere.client.TrackMessageSizeInterceptor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cyant.chat; | |
import com.cyant.chat.event.operator.AddCustomerEvent; | |
import com.cyant.chat.user.CustomerUser; | |
import com.cyant.chat.user.OperatorUser; | |
import org.atmosphere.cpr.*; | |
import java.util.ArrayList; | |
import java.util.Collection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Antoine Hedgecock <[email protected]> | |
* | |
* @copyright PMG Media Group AB | |
*/ | |
namespace User\Controller; | |
use MCNStdlib\Interfaces\UserServiceInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function yourMethodName() | |
{ | |
$builder = $this->getEntityManager()->createQueryBuilder(); | |
$builder->from('Module\Entity\Entity', 'entity'); | |
$builder->select('entity'); | |
$builder->leftJoin('entity.relation', 'relation'); | |
$builder->addSelect('relation'); | |
return $builder->getQuery()->getResult(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Antoine Hedgecock <[email protected]> | |
* @author Jonas Eriksson <[email protected]> | |
* | |
* @copyright PMG Media Group AB | |
*/ | |
namespace Acl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Antoine Hedgecock <[email protected]> | |
* @author Jonas Eriksson <[email protected]> | |
* | |
* @copyright PMG Media Group AB | |
*/ | |
namespace Domain\Repository\SqlWalker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// account status | |
$form->add(array( | |
'name' => 'enabled', | |
'type' => 'Zend\Form\Element\Select', | |
'options' => array( | |
'value_options' => array( | |
array( | |
'value' => 99, | |
'label' => 'French', |
NewerOlder