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 | |
/** | |
* Created by PhpStorm. | |
* User: root | |
* Date: 17.07.16 | |
* Time: 07:49 | |
*/ | |
namespace Check\BlogBundle\Repositories; |
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 Check\BlogBundle\Entity; | |
use Check\BlogBundle\Repositories\UserRepository; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* User | |
* @ORM\Entity(repositoryClass="Check\BlogBundle\Repositories\UserRepository") |
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 | |
/** | |
* Created by PhpStorm. | |
* User: root | |
* Date: 16.07.16 | |
* Time: 15:34 | |
*/ | |
namespace AppBundle\Controller\Api; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: root | |
* Date: 17.07.16 | |
* Time: 07:49 | |
*/ | |
namespace Check\BlogBundle\Repositories; |
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
// app/AppKernel.php | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( | |
// ... | |
new FOS\RestBundle\FOSRestBundle(), | |
); |
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
// in AppKernel::registerBundles() | |
$bundles = array( | |
// ... | |
new JMS\SerializerBundle\JMSSerializerBundle(), | |
// ... | |
); |
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"?> | |
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> | |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd" | |
backupGlobals="false" | |
colors="true" | |
bootstrap="app/autoload.php" | |
> | |
<php> |
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 Check\BlogBundle\Tests\Controller; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
class UserApiTest extends WebTestCase | |
{ | |
public function testRouteIsAvaliable() |
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
/** | |
* @param string person | |
*/ | |
function myFirstTypeSafeFunction(person:string) | |
{ | |
return 'Hello' + person; | |
} | |
var person = 'Paul Panzer'; |
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
interface IPerson { | |
firstName: string; | |
lastName:string; | |
} | |
/** | |
* @param Person person | |
*/ | |
function printPerson(Person:IPerson) { | |
return 'Hi ,'+ Person.firstName + ' ' + Person.lastName |