This file contains hidden or 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 | |
if (!empty($bean->fetched_row['id'])) { | |
// Do custom logic | |
} |
This file contains hidden or 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 | |
// this file is upgrade safe | |
// location: custom/modules/Contacts/views/view.detail.php | |
require_once('modules/Contacts/views/view.detail.php'); | |
class CustomContactsViewDetail extends ContactsViewDetail { | |
/** | |
* @see SugarView::display() |
This file contains hidden or 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 | |
abstract class AbstractObject | |
{ | |
// we use static var to enforce setting up entry point | |
// in child classes | |
public static $entryPoint = null; | |
public static function getEntryPoint() |
This file contains hidden or 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
florianv_swap: | |
cache: | |
type: psr16_cache_apcu | |
ttl: 86400 |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:framework="http://symfony.com/schema/dic/symfony" | |
xmlns="http://symfony.com/schema/dic/services" | |
xsi:schemaLocation="http://symfony.com/schema/dic/services | |
http://symfony.com/schema/dic/services/services-1.0.xsd | |
http://symfony.com/schema/dic/symfony | |
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | |
<services> |
This file contains hidden or 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 | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity; | |
use Gedmo\Timestampable\Traits\TimestampableEntity; | |
use MyVendor\Contracts\Entity\VehicleInterface; | |
use MyVendor\Contracts\Entity\VehicleOwnerInterface; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use DateTimeImmutable; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Collection; |
This file contains hidden or 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
// REQUEST | |
{ | |
"year":2017, | |
"vin":"134513879", | |
"plate":"A123AA777", | |
"powerHp":"146.1", | |
"model":"/api/vehicle_models/000b69fa-a335-49d6-b7be-49fbe570376a", | |
"ownerPerson": { | |
"firstName":"Egor" | |
} |
This file contains hidden or 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
{ | |
"type": "Person", | |
"firstName": "Ivan", | |
"lastName": "Ivanov" | |
} | |
{ | |
"type": "Company", | |
"name": "ACME Consulting", | |
"city": "Moscow" | |
} |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\ORM\Mapping\Entity; | |
/** | |
* @Entity |
OlderNewer