Last active
September 9, 2018 18:37
-
-
Save piotrbrzezina/55a73c12a7bea2af9b81cd860cb81053 to your computer and use it in GitHub Desktop.
Flashcard step 2 (add @ApiResource())
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 | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
// ... | |
/** | |
* @ApiResource() | |
* ... | |
*/ | |
class Flashcard | |
{ | |
// ... | |
} |
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 | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
// ... | |
/** | |
* @ApiResource() | |
* ... | |
*/ | |
class Lesson | |
{ | |
// ... | |
} |
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 | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
// ... | |
/** | |
* @ApiResource() | |
* ... | |
*/ | |
class Subject | |
{ | |
// ... | |
} |
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 | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
// ... | |
/** | |
* @ApiResource() | |
* ... | |
*/ | |
class User implements UserInterface | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment